summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2013-10-02 17:31:47 -0700
committerztenghui <ztenghui@google.com>2013-10-02 17:31:47 -0700
commite941cbeeacac11fbae5ae8b06cc1b311e3f6f36d (patch)
tree50b0bb1d6d1d70287243987211456bfb445943ae /src/com
parent6416ba8a428025c669782a2d3226f06ad5a86921 (diff)
downloadandroid_packages_apps_Snap-e941cbeeacac11fbae5ae8b06cc1b311e3f6f36d.tar.gz
android_packages_apps_Snap-e941cbeeacac11fbae5ae8b06cc1b311e3f6f36d.tar.bz2
android_packages_apps_Snap-e941cbeeacac11fbae5ae8b06cc1b311e3f6f36d.zip
Only show delete action when in secure camera mode.
bug:11048260 Change-Id: Idcf452e91983acdfad17ce1cc503b25d17c2e53c
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/CameraActivity.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java
index fcb24b5e7..3087bbeeb 100644
--- a/src/com/android/camera/CameraActivity.java
+++ b/src/com/android/camera/CameraActivity.java
@@ -587,6 +587,11 @@ public class CameraActivity extends Activity
break;
}
+ // In secure camera mode, we only support delete operation.
+ if (isSecureCamera()) {
+ supported &= SUPPORT_DELETE;
+ }
+
setMenuItemVisible(mActionBarMenu, R.id.action_delete,
(supported & SUPPORT_DELETE) != 0);
setMenuItemVisible(mActionBarMenu, R.id.action_rotate_ccw,