summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-07-31 19:09:37 -0700
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 21:57:50 +0200
commite7333df6c03e0ca0577fa66a11956c7543e95bdc (patch)
treef9d0466e59dca56b137a06f1ec9cca3da5330aee
parent2ef80bcfd5ba4476d94b46b7acd247582b4325a8 (diff)
downloadandroid_packages_apps_Snap-e7333df6c03e0ca0577fa66a11956c7543e95bdc.zip
android_packages_apps_Snap-e7333df6c03e0ca0577fa66a11956c7543e95bdc.tar.gz
android_packages_apps_Snap-e7333df6c03e0ca0577fa66a11956c7543e95bdc.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
-rwxr-xr-xsrc/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 816fd3a..c75d1fd 100755
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -3197,6 +3197,12 @@ public class PhotoModule
Log.e(TAG, "Handled NULL pointer Exception");
}
+ // 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