summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/CameraSettings.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java
index b1020ae..d05c3a5 100644
--- a/src/com/android/camera/CameraSettings.java
+++ b/src/com/android/camera/CameraSettings.java
@@ -799,8 +799,12 @@ public class CameraSettings {
}
if (videoSnapSize != null) {
- filterUnsupportedOptions(group, videoSnapSize, sizeListToStringList(
- mParameters.getSupportedPictureSizes()));
+ if (CameraUtil.isVideoSnapshotSupported(mParameters)) {
+ filterUnsupportedOptions(group, videoSnapSize, sizeListToStringList(
+ mParameters.getSupportedPictureSizes()));
+ } else {
+ removePreference(group, videoSnapSize.getKey());
+ }
}
if (histogram != null) {