mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
"Download" menu button on image detail page.
Saves original file into the SD card "Downloads" directory via Android's DownloadManager service. On Gingerbread the notification vanishes after downloda, but we force the gallery to reindex the downloads area so you can still manually bump over to Gallery. On ICS/JB the notification hangs around and can be used to open the saved file directly. Note that on Gingerbread we have to download over HTTP because DownloadManager didn't support HTTPS. Included copy of stock 'upload' icon, flipped it for 'download'.
This commit is contained in:
parent
ef77d5ff49
commit
5be2d939ea
8 changed files with 76 additions and 0 deletions
|
|
@ -11,6 +11,11 @@
|
|||
android:icon="@android:drawable/ic_menu_view"
|
||||
android:title="@string/menu_open_in_browser"
|
||||
/>
|
||||
<item android:id="@+id/menu_download_current_image"
|
||||
android:showAsAction="always"
|
||||
android:icon="@drawable/ic_menu_download"
|
||||
android:title="Download"
|
||||
/>
|
||||
<item android:id="@+id/menu_retry_current_image"
|
||||
android:showAsAction="always|withText"
|
||||
android:icon="@android:drawable/ic_menu_revert"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue