summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/values
diff options
context:
space:
mode:
authorniks255 <niks255@mail.ru>2016-01-28 22:03:59 +0300
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-12 14:07:54 -0800
commit43e3f86b25099220cf3cc37133e042d17f64f86b (patch)
treecac674ece1eb8c54e8d1430d2d376329304eeced /packages/SystemUI/res/values
parent95a503c41199230abaa46ad040d45527e9ccc052 (diff)
downloadframeworks_base-43e3f86b25099220cf3cc37133e042d17f64f86b.zip
frameworks_base-43e3f86b25099220cf3cc37133e042d17f64f86b.tar.gz
frameworks_base-43e3f86b25099220cf3cc37133e042d17f64f86b.tar.bz2
Add wakelock option for flashlight
On some legacy devices flashlight can't stay on when screen is off. With this change, flashlight can use wakelock. For obvious reasons, this is turned off by default and needs to be enabled through overlay. Change-Id: Ia69309cf023430c9e90634a722be97ebbf6677ca
Diffstat (limited to 'packages/SystemUI/res/values')
-rw-r--r--packages/SystemUI/res/values/config.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
index 857b208..cdbe2fd 100644
--- a/packages/SystemUI/res/values/config.xml
+++ b/packages/SystemUI/res/values/config.xml
@@ -297,5 +297,8 @@
<!-- Duration of the expansion animation in the volume dialog -->
<item name="volume_expand_animation_duration" type="integer">300</item>
+ <!-- Allow Flashlight service to use wakelock -->
+ <bool name="flashlight_use_wakelock">false</bool>
+
</resources>