mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Add comments
This commit is contained in:
parent
2989b4a096
commit
f845a9af70
1 changed files with 2 additions and 1 deletions
|
|
@ -178,6 +178,7 @@ public class MediaDetailPagerFragment extends Fragment implements ViewPager.OnPa
|
|||
Uri imageUri = Uri.parse(imageUrl);
|
||||
|
||||
DownloadManager.Request req = new DownloadManager.Request(imageUri);
|
||||
//These are not the image title and description fields, they are download descs for notifications
|
||||
req.setDescription(getString(R.string.app_name));
|
||||
req.setTitle(m.getDisplayTitle());
|
||||
req.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, fileName);
|
||||
|
|
@ -275,7 +276,7 @@ public class MediaDetailPagerFragment extends Fragment implements ViewPager.OnPa
|
|||
public void showImage(int i) {
|
||||
pager.setCurrentItem(i);
|
||||
}
|
||||
|
||||
|
||||
public void onPageScrolled(int i, float v, int i2) {
|
||||
getActivity().supportInvalidateOptionsMenu();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue