diff options
author | Sultanxda <sultanxda@gmail.com> | 2015-10-04 00:20:01 -0700 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2018-01-26 01:08:01 +0100 |
commit | 835e2c91eb40c6984bb238571402dedfc0af18db (patch) | |
tree | 8ec44267c58071f928ee8d3b8e37854996fdbb0f | |
parent | 9830173106f96f8106e2ed56b457599cdb031191 (diff) | |
download | android_packages_apps_Snap-835e2c91eb40c6984bb238571402dedfc0af18db.tar.gz android_packages_apps_Snap-835e2c91eb40c6984bb238571402dedfc0af18db.tar.bz2 android_packages_apps_Snap-835e2c91eb40c6984bb238571402dedfc0af18db.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>
-rwxr-xr-x | src/com/android/camera/FocusOverlayManager.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/camera/FocusOverlayManager.java b/src/com/android/camera/FocusOverlayManager.java index 0a092b43b..53fdbb4f7 100755 --- a/src/com/android/camera/FocusOverlayManager.java +++ b/src/com/android/camera/FocusOverlayManager.java @@ -291,6 +291,9 @@ public class FocusOverlayManager { // sound. if (focused) { mState = STATE_SUCCESS; + // Lock exposure and white balance + setAeAwbLock(true); + mListener.setFocusParameters(); } else { mState = STATE_FAIL; } @@ -302,6 +305,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; } @@ -456,6 +462,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(); mUI.resumeFaceDetection(); mState = STATE_IDLE; |