summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-07-31 19:09:37 -0700
committerArne Coucheron <arco68@gmail.com>2018-01-26 01:07:37 +0100
commit9259546e1ce12c7cd11e3042b0879ed8193ee8d1 (patch)
tree4c4228774e5a06a3e2760bedb3a32e149d70471d
parent3b4e8250375adf76cc62748dc1bc09533b3c45a2 (diff)
downloadandroid_packages_apps_Snap-9259546e1ce12c7cd11e3042b0879ed8193ee8d1.zip
android_packages_apps_Snap-9259546e1ce12c7cd11e3042b0879ed8193ee8d1.tar.gz
android_packages_apps_Snap-9259546e1ce12c7cd11e3042b0879ed8193ee8d1.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 8c8efdc..d4af13c 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -3357,6 +3357,12 @@ public class PhotoModule
String optizoomOn = mActivity.getString(R.string
.pref_camera_advanced_feature_value_optizoom_on);
+ // 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