From bf6645e8299bc6b2cee7d1fc20b0643ed05a0a4f Mon Sep 17 00:00:00 2001 From: Matskidis Giannis Date: Mon, 1 Feb 2021 00:51:32 +0200 Subject: [PATCH] Show Toast when download starts Add toast to inform the user that download started and add the right string in values. --- .../main/java/org/schabi/newpipe/download/DownloadDialog.java | 3 +++ app/src/main/res/values/strings.xml | 1 + 2 files changed, 4 insertions(+) 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 e573879c0..484a46497 100644 --- a/app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java +++ b/app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java @@ -672,6 +672,9 @@ 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, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 99702dab0..b372bee7f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -713,4 +713,5 @@ Automatic (device theme) Select your favorite night theme — %s You can select your favorite night theme below + Download has started