diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/camera/CameraSettings.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index 949c1a5a3..b1020ae3b 100644 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -803,7 +803,7 @@ public class CameraSettings { mParameters.getSupportedPictureSizes())); } - if (histogram!= null) { + if (histogram != null) { filterUnsupportedOptions(group, histogram, mParameters.getSupportedHistogramModes()); } @@ -813,14 +813,19 @@ public class CameraSettings { pictureFormat, getSupportedPictureFormatLists()); } - if(advancedFeatures != null) { + if (advancedFeatures != null) { filterUnsupportedOptions(group, advancedFeatures, getSupportedAdvancedFeatures(mParameters)); } - if (longShot!= null && !isLongshotSupported(mParameters)) { + + if (longShot != null && !isLongshotSupported(mParameters)) { removePreference(group, longShot.getKey()); } + if (auto_hdr != null && !CameraUtil.isAutoHDRSupported(mParameters)) { + removePreference(group, auto_hdr.getKey()); + } + if (videoRotation != null) { filterUnsupportedOptions(group, videoRotation, mParameters.getSupportedVideoRotationValues()); |