summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-07-31 19:09:37 -0700
committerSteve Kondik <steve@cyngn.com>2016-08-03 15:45:47 -0700
commitd91acef80789a8ccff4ac4cf6463b90e9f11cdd0 (patch)
tree69505037161e32b988d55f0d41c5563ccf1c9f1a
parent8fef7aca7bd309ee948ee75fe0c51569a1d98693 (diff)
downloadandroid_packages_apps_Snap-d91acef80789a8ccff4ac4cf6463b90e9f11cdd0.zip
android_packages_apps_Snap-d91acef80789a8ccff4ac4cf6463b90e9f11cdd0.tar.gz
android_packages_apps_Snap-d91acef80789a8ccff4ac4cf6463b90e9f11cdd0.tar.bz2
snap: Always turn touch-af-aec on
* Most cameras do this by default, but on at least one device it starts with the option disabled. This stops AEC from updating during touch focus. Change-Id: I4bdb6cdbad86f3798c0288d6a32b7e8062e297f3
-rw-r--r--src/com/android/camera/PhotoModule.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index 9419c37..64896c4 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -2988,6 +2988,12 @@ public class PhotoModule
mActivity.getString(R.string.pref_camera_longshot_default));
mParameters.set("long-shot", longshot_enable);
+ // Set Touch AF/AEC parameter.
+ if (CameraUtil.isSupported(mParameters.TOUCH_AF_AEC_ON,
+ mParameters.getSupportedTouchAfAec())) {
+ mParameters.setTouchAfAec(mParameters.TOUCH_AF_AEC_ON);
+ }
+
// Set Picture Format
// Picture Formats specified in UI should be consistent with
// PIXEL_FORMAT_JPEG and PIXEL_FORMAT_RAW constants