Merge "Fix download title to make more sense"

This commit is contained in:
YuviPanda 2013-06-16 12:41:53 +00:00 committed by Gerrit Code Review
commit 94ba7d4e69

View file

@ -172,8 +172,8 @@ public class MediaDetailPagerFragment extends SherlockFragment implements ViewPa
Uri imageUri = Uri.parse(imageUrl); Uri imageUri = Uri.parse(imageUrl);
DownloadManager.Request req = new DownloadManager.Request(imageUri); DownloadManager.Request req = new DownloadManager.Request(imageUri);
req.setDescription(m.getDisplayTitle()); req.setDescription(getString(R.string.app_name));
req.setTitle("Commons"); req.setTitle(m.getDisplayTitle());
req.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, fileName); req.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, fileName);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
// Modern Android updates the gallery automatically. Yay! // Modern Android updates the gallery automatically. Yay!