From e7750373667cda5bbdeac1e3f8541f91a04e3dfe Mon Sep 17 00:00:00 2001 From: Sub Raizada Date: Thu, 22 Apr 2021 02:45:04 +0000 Subject: [PATCH] Only show 'download has started' toast when a download has started --- .../java/org/schabi/newpipe/download/DownloadDialog.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java b/app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java index 4d3726c38..db2b3b7e2 100644 --- a/app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java +++ b/app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java @@ -671,9 +671,6 @@ public class DownloadDialog extends DialogFragment 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, @@ -929,6 +926,9 @@ public class DownloadDialog extends DialogFragment 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(); } }