summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjiaoyuan <jiaoyuan@codeaurora.org>2019-09-06 09:30:01 +0800
committerSridhar Gujje <sgujje@codeaurora.org>2020-01-11 07:35:15 +0530
commit7dafc0bea65f88b9f9ba707a317b371df53d32af (patch)
treec95d3fd0c4000b61f87ba4c193780dd8d0aca8be
parentdd0d24cc8b9148274eb942561ffaa18664530f8e (diff)
downloadandroid_packages_apps_Snap-7dafc0bea65f88b9f9ba707a317b371df53d32af.tar.gz
android_packages_apps_Snap-7dafc0bea65f88b9f9ba707a317b371df53d32af.tar.bz2
android_packages_apps_Snap-7dafc0bea65f88b9f9ba707a317b371df53d32af.zip
SnapdraongCamera: cct mode wb is error
when cct mode, should set CONTROL_AWB_MODE_OFF to CONTROL_AWB_MODE, then the wb will show Manual. Change-Id: Idb37e11f140181683ea72b58af50c31edb9abae2
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 24f103529..bd998493e 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -6088,6 +6088,7 @@ public class CaptureModule implements CameraModule, PhotoController,
int colorTempValue = Integer.parseInt(pref.getString(
SettingsManager.KEY_MANUAL_WB_TEMPERATURE_VALUE, "-1"));
if (colorTempValue != -1) {
+ request.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_OFF);
VendorTagUtil.setWbColorTemperatureValue(request, colorTempValue);
}
} else if (manualWBMode.equals(gainMode)) {