SuchABot has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/68545


Change subject: Fix download title to make more sense
......................................................................

Fix download title to make more sense

Set title to file name, and description to app name

Change-Id: I68778959cf9b6abd42b223c4866387c4880fd835
GitHub: https://github.com/wikimedia/apps-android-commons/pull/6
---
M 
commons/src/main/java/org/wikimedia/commons/media/MediaDetailPagerFragment.java
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/commons 
refs/changes/45/68545/1

diff --git 
a/commons/src/main/java/org/wikimedia/commons/media/MediaDetailPagerFragment.java
 
b/commons/src/main/java/org/wikimedia/commons/media/MediaDetailPagerFragment.java
index 9e11d13..a9188ff 100644
--- 
a/commons/src/main/java/org/wikimedia/commons/media/MediaDetailPagerFragment.java
+++ 
b/commons/src/main/java/org/wikimedia/commons/media/MediaDetailPagerFragment.java
@@ -172,8 +172,8 @@
         Uri imageUri = Uri.parse(imageUrl);
 
         DownloadManager.Request req = new DownloadManager.Request(imageUri);
-        req.setDescription(m.getDisplayTitle());
-        req.setTitle("Commons");
+        req.setDescription(getString(R.string.app_name));
+        req.setTitle(m.getDisplayTitle());
         req.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, 
fileName);
         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
             // Modern Android updates the gallery automatically. Yay!

-- 
To view, visit https://gerrit.wikimedia.org/r/68545
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I68778959cf9b6abd42b223c4866387c4880fd835
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/commons
Gerrit-Branch: master
Gerrit-Owner: SuchABot <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to