summaryrefslogtreecommitdiff
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authormingwax <mingwax@codeaurora.org>2017-02-20 17:31:57 +0800
committermingwax <mingwax@codeaurora.org>2017-02-20 17:37:23 +0800
commit28a8ad28a1a3bc51a059875a654850fa43665ded (patch)
treed614c12aad55d4b66700c2fd17460f94aeab1d06 /src/com/android/camera/CaptureModule.java
parent3196565b3091f36a00428c0509c2bfd959c84b85 (diff)
SnapdragonCamera: Fix ISO auto don`t work in pro mode
SnapdragonCamera needs to set ISO with 0 value when in auto mode, instead of NULL. CRs-Fixed: 2008928 Change-Id: I5fd39a743c3ae7286ade4c810d7d4e15714293e5
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rw-r--r--src/com/android/camera/CaptureModule.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 0a8da719d..caa173e0a 100644
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -4026,8 +4026,8 @@ public class CaptureModule implements CameraModule, PhotoController,
String value = mSettingsManager.getValue(SettingsManager.KEY_ISO);
if (value == null) return;
if (value.equals("auto")) {
- request.set(SELECT_PRIORITY, null);
- request.set(ISO_EXP, null);
+ request.set(SELECT_PRIORITY, 0);
+ request.set(ISO_EXP, 0L);
} else {
long intValue = Integer.parseInt(value);
request.set(SELECT_PRIORITY, 0);