Skip to content

Commit

Permalink
Merge pull request #6139 from subraizada3/dev
Browse files Browse the repository at this point in the history
Only show 'download has started' toast when download is started
  • Loading branch information
Redirion authored Apr 22, 2021
2 parents 0039312 + e775037 commit ceb930a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,6 @@ private void prepareSelectedDownload() {
prefs.edit()
.putString(getString(R.string.last_used_download_type), selectedMediaType)
.apply();

Toast.makeText(context, getString(R.string.download_has_started),
Toast.LENGTH_SHORT).show();
}

private void checkSelectedDownload(final StoredDirectoryHelper mainStorage,
Expand Down Expand Up @@ -929,6 +926,9 @@ private void continueSelectedDownload(@NonNull final StoredFileHelper storage) {
DownloadManagerService.startMission(context, urls, storage, kind, threads,
currentInfo.getUrl(), psName, psArgs, nearLength, recoveryInfo);

Toast.makeText(context, getString(R.string.download_has_started),
Toast.LENGTH_SHORT).show();

dismiss();
}
}

0 comments on commit ceb930a

Please sign in to comment.