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 | |
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')
-rw-r--r-- | res/menu/operation.xml | 12 | ||||
-rw-r--r-- | res/menu/photo.xml | 12 |
2 files changed, 21 insertions, 3 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" 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" |