mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
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:
parent
154411b15b
commit
12fac7ef35
1 changed files with 2 additions and 2 deletions
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue