mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
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'.
34 lines
No EOL
1.3 KiB
XML
34 lines
No EOL
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item android:id="@+id/menu_share_current_image"
|
|
android:showAsAction="always|withText"
|
|
android:icon="@android:drawable/ic_menu_share"
|
|
android:title="@string/menu_share"
|
|
/>
|
|
<item android:id="@+id/menu_browser_current_image"
|
|
android:showAsAction="always"
|
|
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"
|
|
android:title="@string/menu_retry"
|
|
android:visible="false"
|
|
android:enabled="false"
|
|
/>
|
|
<item android:id="@+id/menu_abort_current_image"
|
|
android:showAsAction="always|withText"
|
|
android:icon="@android:drawable/ic_menu_delete"
|
|
android:title="@string/menu_abort"
|
|
android:visible="false"
|
|
android:enabled="false"
|
|
/>
|
|
|
|
</menu> |