summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2017-03-26 12:13:09 +0200
committerBruno Martins <bgcngm@gmail.com>2018-11-20 12:31:36 +0000
commit7882513b554bfcbbb0dc47d6ca3ff3cb9cf9d906 (patch)
treec2abd502567c6fced76bad1a53b9107c56f0293b /res
parent7be678558090d0e46fd43e00e714665bf47bdffe (diff)
downloadandroid_packages_apps_Snap-7882513b554bfcbbb0dc47d6ca3ff3cb9cf9d906.tar.gz
android_packages_apps_Snap-7882513b554bfcbbb0dc47d6ca3ff3cb9cf9d906.tar.bz2
android_packages_apps_Snap-7882513b554bfcbbb0dc47d6ca3ff3cb9cf9d906.zip
Always apply frame size reduction to panorama pictures
Panorama mode requires quite some memory, especially after the frame num bump done with commit aa0733567c30 ("Make panorama able to go 270 degrees in landscape"). Some devices run out of memory while taking a panorama picture and force close Snap before the picture is complete. We have a config to reduce the memory requirements that reduces the size of each frame, but it's applied only if ro.config.low_ram is true. Bump the default value to 100 and always respect it. Devices having ro.config.low_ram set to true will have to override this config from their device tree. BUGBASH-326 Change-Id: Ic6d24b17b2293adf8d715904c8c1874a4c624e99
Diffstat (limited to 'res')
-rw-r--r--res/values/config.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/values/config.xml b/res/values/config.xml
index 300c2d906..da52d90e1 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -22,7 +22,7 @@
<!-- This value may be tweaked to save memory on low RAM devices. The value
is the percentage of camera preview height/width to scale to. -->
- <integer name="panorama_frame_size_reduction">90</integer>
+ <integer name="panorama_frame_size_reduction">100</integer>
<!-- This value may be changed to true to enable the warped pano preview overlayed on top
of the fullscreen pano preview. -->