Put call to forget finished downloads in an else statement to prevent potential bugs

This commit is contained in:
Kamil Szczęk 2019-10-11 16:36:47 +02:00
parent f6bbc69cf9
commit b18236a27e
1 changed files with 2 additions and 1 deletions

View File

@ -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();
} }