Skip to content

Commit ceb930a

Browse files
authored
Merge pull request #6139 from subraizada3/dev
Only show 'download has started' toast when download is started
2 parents 0039312 + e775037 commit ceb930a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,6 @@ private void prepareSelectedDownload() {
671671
prefs.edit()
672672
.putString(getString(R.string.last_used_download_type), selectedMediaType)
673673
.apply();
674-
675-
Toast.makeText(context, getString(R.string.download_has_started),
676-
Toast.LENGTH_SHORT).show();
677674
}
678675

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

929+
Toast.makeText(context, getString(R.string.download_has_started),
930+
Toast.LENGTH_SHORT).show();
931+
932932
dismiss();
933933
}
934934
}

0 commit comments

Comments
 (0)