summaryrefslogtreecommitdiff
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2018-01-04 23:13:53 +0100
committerLuK1337 <priv.luk@gmail.com>2020-11-26 11:22:01 +0100
commit47bd10d550bf5d93a38bd00a607b378518d5b48c (patch)
tree3286f5913d6f73017fc047e0e60eb3c0ed7c186b /src/com/android/camera/CaptureModule.java
parentb2c05d20cca54b4ce807408669857d4f0e39dfd7 (diff)
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-xsrc/com/android/camera/CaptureModule.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 707b4a78f..988ba227b 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -6984,6 +6984,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;
@@ -6992,6 +6994,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);
@@ -7089,6 +7093,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_STATS_VISUALIZER_VALUE);
if (value != null ) {
if (value.contains("2")) {