summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app
diff options
context:
space:
mode:
authorSascha Haeberling <haeberling@google.com>2013-04-22 16:06:25 -0700
committerSascha Haeberling <haeberling@google.com>2013-04-22 16:06:25 -0700
commit3f6b05195519445ab274b684c9eec6fd16ef7057 (patch)
treeb114d489a7b37300bc1d7f77217e9f639832b584 /src/com/android/gallery3d/app
parent37c006fc72a6a3f849545587ad85c82466862bc4 (diff)
downloadandroid_packages_apps_Snap-3f6b05195519445ab274b684c9eec6fd16ef7057.tar.gz
android_packages_apps_Snap-3f6b05195519445ab274b684c9eec6fd16ef7057.tar.bz2
android_packages_apps_Snap-3f6b05195519445ab274b684c9eec6fd16ef7057.zip
Make sure we don't add the pano sharing menu in the secure lock screen.
Bug: 8473022 Change-Id: Ie2221b6a660b7c9dc39cef89a509da4b2659adb3
Diffstat (limited to 'src/com/android/gallery3d/app')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 613ac17eb..7a71e9109 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -815,11 +815,13 @@ public abstract class PhotoPage extends ActivityState implements
int supportedOperations = mCurrentPhoto.getSupportedOperations();
if (mSecureAlbum != null) {
supportedOperations &= MediaObject.SUPPORT_DELETE;
- } else if (!mHaveImageEditor) {
- supportedOperations &= ~MediaObject.SUPPORT_EDIT;
+ } else {
+ mCurrentPhoto.getPanoramaSupport(mUpdatePanoramaMenuItemsCallback);
+ if (!mHaveImageEditor) {
+ supportedOperations &= ~MediaObject.SUPPORT_EDIT;
+ }
}
MenuExecutor.updateMenuOperation(menu, supportedOperations);
- mCurrentPhoto.getPanoramaSupport(mUpdatePanoramaMenuItemsCallback);
}
private boolean canDoSlideShow() {