summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2016-12-22 20:05:52 +0100
committerChippa-a <vusal1372@gmail.com>2019-10-25 15:55:25 +0300
commitd8447450778d33262aebd7f7ed4346a8832f192e (patch)
tree63f5141db5c3fbb8023430b96b4a3d9c6be2272e /res/values
parentaeefca79db8916396109271160321aa4fc3346b8 (diff)
downloadandroid_packages_apps_Snap-d8447450778d33262aebd7f7ed4346a8832f192e.tar.gz
android_packages_apps_Snap-d8447450778d33262aebd7f7ed4346a8832f192e.tar.bz2
android_packages_apps_Snap-d8447450778d33262aebd7f7ed4346a8832f192e.zip
Snap: Make openLegacy an option
Using openLegacy on QCamera3 forces it to use QCamera2 and fall back to api v1 which is not what we want on v2 devices. Author: codeworkx <codeworkx@cyanogenmod.org> Date: Tue Jan 5 23:02:12 2016 +0100 make openLegacy an option Change-Id: Ia4142288ef0fafa62fa0ab855dc342b363b640cd Author: Zhao Wei Liew <zhaoweiliew@gmail.com> Date: Sun Jul 10 15:11:43 2016 +0800 Snap: Tighten openLegacy() try-catch block We only have to enclose the openLegacy() call in a try-catch block. This prevents us from re-calling open() when open() fails and throws a RuntimeException. Change-Id: I81396e453f57215338a0c4da41c4116f2b4d42ca Change-Id: Ic392a4ae9403ebae36940ddf0727237d9cb9e8f0
Diffstat (limited to 'res/values')
-rw-r--r--res/values/config.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/values/config.xml b/res/values/config.xml
index 6ac6ecea1..0b84c97d6 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -28,6 +28,12 @@
of the fullscreen pano preview. -->
<bool name="enable_warped_pano_preview">true</bool>
+ <!-- Opens back camera using openLegacy() and forces api v1 -->
+ <bool name="back_camera_open_legacy">true</bool>
+
+ <!-- Opens front camera using openLegacy() and forces api v1 -->
+ <bool name="front_camera_open_legacy">true</bool>
+
<!-- Restart preview for back camera onPictureTaken -->
<bool name="back_camera_restart_preview_onPictureTaken">false</bool>