From 402f696c102df5c93f2023c251c13b234f31a0de Mon Sep 17 00:00:00 2001 From: flyingrub Date: Sun, 24 Sep 2017 20:53:03 +0200 Subject: [PATCH] Add feedback when downloading image fixes #388 --- .../main/java/com/keylesspalace/tusky/ViewMediaActivity.java | 5 +++++ app/src/main/res/values-fr/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 3 files changed, 7 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.java b/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.java index ea5426e9..813581b8 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.java @@ -41,6 +41,7 @@ import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.view.View; +import android.widget.Toast; import com.keylesspalace.tusky.fragment.ViewMediaFragment; import com.keylesspalace.tusky.pager.ImagePagerAdapter; @@ -218,6 +219,10 @@ public class ViewMediaActivity extends BaseActivity implements ViewMediaFragment String filename = new File(url).getName(); + String toastText = String.format(getResources().getString(R.string.download_image), + filename); + Toast.makeText(this.getApplicationContext(), toastText, Toast.LENGTH_SHORT).show(); + DownloadManager downloadManager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 34424ac6..4147f9c2 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -99,6 +99,7 @@ Utilisateurs muets Partager l’URL de votre pouet avec… Partager le pouet avec… + Téléchargement de %1$s Pouet ! Envoyé ! diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7a8251a6..7e327ced 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -100,6 +100,7 @@ Reject Search Drafts + Downloading %1$s Share toot URL to… Share toot to…