diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2018-01-04 23:13:53 +0100 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2018-01-27 00:41:45 +0100 |
commit | 289bdf1e3b25af843a945de64548e19e9d759bcb (patch) | |
tree | e76ce2adfbfa769d3671d865ea06f2e49036d1d9 /src/com/android/camera/CaptureModule.java | |
parent | 860bd020b0414c3d52da8bcde260fbbbb20a9359 (diff) | |
download | android_packages_apps_Snap-289bdf1e3b25af843a945de64548e19e9d759bcb.tar.gz android_packages_apps_Snap-289bdf1e3b25af843a945de64548e19e9d759bcb.tar.bz2 android_packages_apps_Snap-289bdf1e3b25af843a945de64548e19e9d759bcb.zip |
Snap: check tags before using them
MessageQueue-JNI: java.lang.IllegalArgumentException: Could not find tag for key
'org.codeaurora.qcamera3.saturation.use_saturation')
Change-Id: Ia42c67552f9d4574e5f86af2ac5aea853198d0ed
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 61aaf9d23..687d21905 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -4067,6 +4067,8 @@ public class CaptureModule implements CameraModule, PhotoController, } private void applyInstantAEC(CaptureRequest.Builder request) { + if (!VendorTagUtil.isSupported(request, CaptureModule.INSTANT_AEC_MODE)) + return; String value = mSettingsManager.getValue(SettingsManager.KEY_INSTANT_AEC); if (value == null || value.equals("0")) return; @@ -4075,6 +4077,8 @@ public class CaptureModule implements CameraModule, PhotoController, } private void applySaturationLevel(CaptureRequest.Builder request) { + if (!VendorTagUtil.isSupported(request, CaptureModule.SATURATION)) + return; String value = mSettingsManager.getValue(SettingsManager.KEY_SATURATION_LEVEL); if (value != null) { int intValue = Integer.parseInt(value); @@ -4091,6 +4095,8 @@ public class CaptureModule implements CameraModule, PhotoController, } private void applyHistogram(CaptureRequest.Builder request) { + if (!VendorTagUtil.isSupported(request, CaptureModule.histMode)) + return; String value = mSettingsManager.getValue(SettingsManager.KEY_HISTOGRAM); if (value != null ) { if (value.equals("enable")){ |