summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2016-07-06 14:53:29 -0700
committerJay Wang <jaywang@codeaurora.org>2016-07-06 14:53:29 -0700
commit551b3b04ddfcb1e81deb04416614c49beadf1434 (patch)
tree0cdf48fda1d55bcd3c13ee617d4606d27f6444f9
parentde98a47425d6f9b1ee017829f99d61ad0620266f (diff)
downloadandroid_packages_apps_Snap-551b3b04ddfcb1e81deb04416614c49beadf1434.tar.gz
android_packages_apps_Snap-551b3b04ddfcb1e81deb04416614c49beadf1434.tar.bz2
android_packages_apps_Snap-551b3b04ddfcb1e81deb04416614c49beadf1434.zip
SnapdragonCamera: Fix the issue that camera control is removed
Fix the issue that camera control menu is removed after HDR icon is clicked from camera control menu. Change-Id: I6e7c1a81fa356d0fa6cb5eb336ef844266a1bbf0 CRs-Fixed: 1038311
-rw-r--r--src/com/android/camera/PhotoMenu.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/com/android/camera/PhotoMenu.java b/src/com/android/camera/PhotoMenu.java
index 083b019c4..6a1f08597 100644
--- a/src/com/android/camera/PhotoMenu.java
+++ b/src/com/android/camera/PhotoMenu.java
@@ -820,10 +820,13 @@ public class PhotoMenu extends MenuController
.findPreference(prefKey);
if (pref == null)
return;
- // Hide the camera control while switching the camera.
- // The camera control will be added back when
- // onCameraPickerClicked is completed
- mUI.hideUI();
+
+ if (prefKey.equals(CameraSettings.KEY_CAMERA_ID)) {
+ // Hide the camera control while switching the camera.
+ // The camera control will be added back when
+ // onCameraPickerClicked is completed
+ mUI.hideUI();
+ }
int index = pref.findIndexOfValue(pref.getValue());
CharSequence[] values = pref.getEntryValues();
index = (index + 1) % values.length;