Put call to forget finished downloads in an else statement to prevent potential bugs
This commit is contained in:
parent
f6bbc69cf9
commit
b18236a27e
|
@ -566,8 +566,9 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
|
||||||
mContext.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, mission.storage.getUri()));
|
mContext.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, mission.storage.getUri()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (!delete) {
|
||||||
|
mDownloadManager.forgetFinishedDownloads();
|
||||||
}
|
}
|
||||||
mDownloadManager.forgetFinishedDownloads();
|
|
||||||
applyChanges();
|
applyChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue