summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2016-03-15 18:20:25 -0700
committerSteve Kondik <steve@cyngn.com>2016-08-03 15:45:46 -0700
commit4180e3b9dd5c8ae712d9dd791f5f69205cefcbeb (patch)
treef4882dce0b5cc3a5b8d067ae35f36a627753c979 /src
parent5bb6fe377c000e4287432518080968344583357a (diff)
downloadandroid_packages_apps_Snap-4180e3b9dd5c8ae712d9dd791f5f69205cefcbeb.zip
android_packages_apps_Snap-4180e3b9dd5c8ae712d9dd791f5f69205cefcbeb.tar.gz
android_packages_apps_Snap-4180e3b9dd5c8ae712d9dd791f5f69205cefcbeb.tar.bz2
SnapdragonCamera: Resolve camera control overlapping issue
Clicking beautification icon right after clicking camera switching icon can cause overlapping of camera controls and beautification controls. To resolve issue, hide the UI controls during camera switching. Change-Id: I5c4b96ce10c0d44e8c63c41207a4ec3d09312b51 CRs-Fixed: 977967
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/PhotoMenu.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoMenu.java b/src/com/android/camera/PhotoMenu.java
index 879b377..0927fee 100644
--- a/src/com/android/camera/PhotoMenu.java
+++ b/src/com/android/camera/PhotoMenu.java
@@ -694,6 +694,10 @@ 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();
int index = pref.findIndexOfValue(pref.getValue());
CharSequence[] values = pref.getEntryValues();
index = (index + 1) % values.length;