summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSultanxda <sultanxda@gmail.com>2015-10-04 00:20:01 -0700
committerMichael Bestas <mikeioannina@cyanogenmod.org>2016-02-07 15:04:32 -0800
commitc03569f4b62647b9327b5a81e17805f0644fb1f8 (patch)
treea575bd3e3c52c2c85d44a04ca2ad3d70301f85b7
parentb562c16cb859a45218873957583712d018bf9326 (diff)
downloadandroid_packages_apps_Snap-c03569f4b62647b9327b5a81e17805f0644fb1f8.zip
android_packages_apps_Snap-c03569f4b62647b9327b5a81e17805f0644fb1f8.tar.gz
android_packages_apps_Snap-c03569f4b62647b9327b5a81e17805f0644fb1f8.tar.bz2
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 401480d..5fcc8e9 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);