summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSultanxda <sultanxda@gmail.com>2015-10-04 00:20:01 -0700
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 21:57:45 +0200
commitb0be23871c6c741249c8b246d1f9e838d4e91ec1 (patch)
tree9d4d1403b4629ea159b2d35f0a6ce836868821e9
parentb82082a43cf3153a0dec9f288d8c358b9b39703a (diff)
downloadandroid_packages_apps_Snap-b0be23871c6c741249c8b246d1f9e838d4e91ec1.tar.gz
android_packages_apps_Snap-b0be23871c6c741249c8b246d1f9e838d4e91ec1.tar.bz2
android_packages_apps_Snap-b0be23871c6c741249c8b246d1f9e838d4e91ec1.zip
SnapdragonCamera: Always lock AE and AWB when auto-focus is used
Lock the auto exposure (AE) and auto white balance (AWB) when tap-to-focus is used. Change-Id: I9d8e9b4928516e8b2bad7be958e5c4849db19ab6 Signed-off-by: Sultanxda <sultanxda@gmail.com>
-rw-r--r--src/com/android/camera/FocusOverlayManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/camera/FocusOverlayManager.java b/src/com/android/camera/FocusOverlayManager.java
index 06cdfa86f..860f34eec 100644
--- a/src/com/android/camera/FocusOverlayManager.java
+++ b/src/com/android/camera/FocusOverlayManager.java
@@ -268,6 +268,9 @@ public class FocusOverlayManager {
// sound.
if (focused) {
mState = STATE_SUCCESS;
+ // Lock exposure and white balance
+ setAeAwbLock(true);
+ mListener.setFocusParameters();
} else {
mState = STATE_FAIL;
}
@@ -278,6 +281,9 @@ public class FocusOverlayManager {
// take the picture now.
if (focused) {
mState = STATE_SUCCESS;
+ // Lock exposure and white balance
+ setAeAwbLock(true);
+ mListener.setFocusParameters();
} else {
mState = STATE_FAIL;
}
@@ -426,6 +432,7 @@ public class FocusOverlayManager {
// Otherwise, focus mode stays at auto and the tap area passed to the
// driver is not reset.
resetTouchFocus();
+ setAeAwbLock(false);
mListener.cancelAutoFocus();
mState = STATE_IDLE;
mHandler.removeMessages(RESET_TOUCH_FOCUS);