summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2016-05-09 21:28:40 +0200
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 21:57:49 +0200
commit13a27f2bdcb1ff1d2a7bbb70cdc2ad173c04736c (patch)
tree7638d10c5a38931bea98216c1367c5788393ccf2
parentec86f6ccb327fa7022a4210f99b1396ec1591a1c (diff)
downloadandroid_packages_apps_Snap-13a27f2bdcb1ff1d2a7bbb70cdc2ad173c04736c.zip
android_packages_apps_Snap-13a27f2bdcb1ff1d2a7bbb70cdc2ad173c04736c.tar.gz
android_packages_apps_Snap-13a27f2bdcb1ff1d2a7bbb70cdc2ad173c04736c.tar.bz2
Snap: force enable zsl for lge hdr
LGE HDR needs ZSL enabled Change-Id: I563b7f7cd49fcf8aad35ca4b93f839dc0a591f01
-rwxr-xr-xsrc/com/android/camera/PhotoModule.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index c15abbc..6972159 100755
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -3947,6 +3947,11 @@ public class PhotoModule
}
if (mLgeHdrMode) {
mParameters.set(CameraSettings.KEY_SNAPCAM_HDR_MODE, CameraSettings.LGE_HDR_MODE_ON);
+ // Force enable ZSL mode for LG HDR
+ try {
+ mUI.setPreference(CameraSettings.KEY_ZSL, Parameters.ZSL_ON);
+ } catch (NullPointerException e) {
+ }
}
} else {
if (mLgeHdrMode) {