summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCheng-Ru Lin <owenlin@google.com>2009-09-30 15:40:33 +0800
committerCheng-Ru Lin <owenlin@google.com>2009-10-01 05:41:43 +0800
commitd39b16c6c7e92ea3a19e25642447df750aa8def0 (patch)
tree787caaeb4b68caea00f24ab82769da9a47dd923c
parentafb66cac1dbe9a98ca51b031f5238d72e0f86f82 (diff)
downloadLegacyCamera-d39b16c6c7e92ea3a19e25642447df750aa8def0.zip
LegacyCamera-d39b16c6c7e92ea3a19e25642447df750aa8def0.tar.gz
LegacyCamera-d39b16c6c7e92ea3a19e25642447df750aa8def0.tar.bz2
Hide the settings when user presses the camera button.
Change-Id: Id43bcf2f7173d5a37134448f6c4a633ea06412b8
-rw-r--r--src/com/android/camera/OnScreenSettings.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/OnScreenSettings.java b/src/com/android/camera/OnScreenSettings.java
index b1f1a10..40518a7 100644
--- a/src/com/android/camera/OnScreenSettings.java
+++ b/src/com/android/camera/OnScreenSettings.java
@@ -194,6 +194,8 @@ public class OnScreenSettings {
private boolean onContainerKey(KeyEvent event) {
switch (event.getKeyCode()) {
+ case KeyEvent.KEYCODE_CAMERA:
+ case KeyEvent.KEYCODE_FOCUS:
case KeyEvent.KEYCODE_BACK:
case KeyEvent.KEYCODE_MENU:
if (event.getAction() == KeyEvent.ACTION_UP) {