summaryrefslogtreecommitdiffstats
path: root/res/menu/photo.xml
diff options
context:
space:
mode:
authorMangesh Ghiware <mghiware@google.com>2012-09-27 21:05:41 -0700
committerMangesh Ghiware <mghiware@google.com>2012-09-27 23:43:45 -0700
commit5172dee697c05235ddf932827d75e6fa0b81d382 (patch)
treee06ec4db5a6df85b3604b2ba780867517d39ccde /res/menu/photo.xml
parent863b4e65d172a19111f46e43f97e7e41927a3bc7 (diff)
downloadandroid_packages_apps_Gallery2-5172dee697c05235ddf932827d75e6fa0b81d382.tar.gz
android_packages_apps_Gallery2-5172dee697c05235ddf932827d75e6fa0b81d382.tar.bz2
android_packages_apps_Gallery2-5172dee697c05235ddf932827d75e6fa0b81d382.zip
Update to sharing panorama
Bug: 7150324 Use separate share intents for sharing panoarma and regular JPGs. If photo is a 360 panorama, promote sharing it on the action bar, and move sharing as JPG to overflow menu. MIME type changed to specify panorama360. Change-Id: I8d52733d105820ac17ff36a6ad9d7525893f6d27
Diffstat (limited to 'res/menu/photo.xml')
-rw-r--r--res/menu/photo.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/res/menu/photo.xml b/res/menu/photo.xml
index 0dcc3f70e..5fe5187d9 100644
--- a/res/menu/photo.xml
+++ b/res/menu/photo.xml
@@ -19,13 +19,21 @@
android:icon="@drawable/ic_menu_ptp_holo_light"
android:showAsAction="always|withText"
android:visible="false" />
+ <!-- Ideally, showAsAction for share_panorama and share should be reversed.
+ But, if share_panorama is set to never, it doesn't seem to get promoted
+ to the action bar and stays on the overflow menu. -->
+ <item android:id="@+id/action_share_panorama"
+ android:icon="@drawable/ic_menu_share_holo_light"
+ android:title="@string/share_panorama"
+ android:visible="false"
+ android:actionProviderClass="com.actionbarsherlock.widget.ShareActionProvider"
+ android:showAsAction="ifRoom" />
<item android:id="@+id/action_share"
android:icon="@drawable/ic_menu_share_holo_light"
android:title="@string/share"
- android:enabled="true"
android:visible="false"
android:actionProviderClass="com.actionbarsherlock.widget.ShareActionProvider"
- android:showAsAction="ifRoom" />
+ android:showAsAction="never" />
<item android:id="@+id/action_grid"
android:icon="@android:drawable/ic_dialog_dialer"
android:title="@string/switch_photo_grid"