summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@cyanogenmod.org>2016-02-15 18:41:51 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-20 14:34:58 -0800
commit11f6404c9e81b0a4b407eb0c48be44cfd9aa59e8 (patch)
tree0e38a42021aee65fc46fc7fd1d1bba230b82b363
parent5095288942c7a41a268c9792df556abe5ab203f2 (diff)
downloadandroid_packages_apps_Snap-11f6404c9e81b0a4b407eb0c48be44cfd9aa59e8.zip
android_packages_apps_Snap-11f6404c9e81b0a4b407eb0c48be44cfd9aa59e8.tar.gz
android_packages_apps_Snap-11f6404c9e81b0a4b407eb0c48be44cfd9aa59e8.tar.bz2
Snap: Remove video snapshot size when not supported
Change-Id: I3f4dd8b76044389ee4d0d257e47b4ac90262ccc1
-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) {