diff options
author | Mangesh Ghiware <mghiware@google.com> | 2012-09-27 21:05:41 -0700 |
---|---|---|
committer | Mangesh Ghiware <mghiware@google.com> | 2012-09-27 23:43:45 -0700 |
commit | 2f589c8a35aee7fe17e899e2a3872f1473f3a176 (patch) | |
tree | 7364f2983d310d8f38f47b9a35bc63b4f10bc84f /res/menu/operation.xml | |
parent | a22d07e5fb84b10c8234a4eeb953b4cdbab574d2 (diff) | |
download | android_packages_apps_Snap-2f589c8a35aee7fe17e899e2a3872f1473f3a176.tar.gz android_packages_apps_Snap-2f589c8a35aee7fe17e899e2a3872f1473f3a176.tar.bz2 android_packages_apps_Snap-2f589c8a35aee7fe17e899e2a3872f1473f3a176.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/operation.xml')
-rw-r--r-- | res/menu/operation.xml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/res/menu/operation.xml b/res/menu/operation.xml index aeef78fdd..984a94432 100644 --- a/res/menu/operation.xml +++ b/res/menu/operation.xml @@ -19,12 +19,22 @@ 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> <item android:id="@+id/action_share" android:icon="@drawable/ic_menu_share_holo_light" android:title="@string/share" android:visible="false" android:actionProviderClass="com.actionbarsherlock.widget.ShareActionProvider" - android:showAsAction="ifRoom"> + android:showAsAction="never"> </item> <item android:id="@+id/action_delete" android:icon="@drawable/ic_menu_trash_holo_light" |