summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Greiss <kufikugel@googlemail.com>2014-03-27 05:54:15 +0100
committerChippa-a <vusal1372@gmail.com>2019-10-25 15:55:25 +0300
commit94f957a0c9c769b366c3d2741a1c21a351a0fcc6 (patch)
tree1ffa9836f957250dc2f9035efef5d2ee02c354f7
parente0b3fd627e41996f91e4629bf08071344a6a75e3 (diff)
downloadandroid_packages_apps_Snap-94f957a0c9c769b366c3d2741a1c21a351a0fcc6.zip
android_packages_apps_Snap-94f957a0c9c769b366c3d2741a1c21a351a0fcc6.tar.gz
android_packages_apps_Snap-94f957a0c9c769b366c3d2741a1c21a351a0fcc6.tar.bz2
Camera2: Don't report incorrect supported picture formats
If camera HAL does not return valid picture formats do not show wrong defaults Currently it falls back to jpeg and raw to choose for the user. All our devices which do not have a proper return of picture format only support jpg. So remove the entry to choose in this case completely Change-Id: Ib4e4094ba0a57e7751f6568f6ec3c3f1dfc1ffb8
-rwxr-xr-xsrc/com/android/camera/CameraSettings.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java
index d765423..1d86113 100755
--- a/src/com/android/camera/CameraSettings.java
+++ b/src/com/android/camera/CameraSettings.java
@@ -718,7 +718,7 @@ public class CameraSettings {
private List<String> getSupportedPictureFormatLists() {
String str = mParameters.get(KEY_QC_PICTURE_FORMAT);
if (str == null) {
- str = "jpeg,raw"; // if not set, fall back to default behavior
+ return null;
}
return split(str);
}