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
This commit is contained in:
YuviPanda 2013-06-13 19:58:26 +00:00 committed by SuchABot
parent 154411b15b
commit 12fac7ef35

View file

@ -172,8 +172,8 @@ public class MediaDetailPagerFragment extends SherlockFragment implements ViewPa
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!