From 0132f3f7c9ee637b7f7cf3a88e34aa15dea1b2f1 Mon Sep 17 00:00:00 2001 From: PMS22 Date: Tue, 19 Jun 2018 20:49:26 +0200 Subject: [PATCH] Cherish: Add Flashlight blink on incoming calls [3/3] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Thanks to Shripal17 for suggesting list preference instead of a toggle - Add a device specific flashlight check idoybh edits: The current check is for isRingerAudiable and not for DND - change var names and strings so it'll not mislead any future developer or any user Signed-off-by: Hưng Phan --- res/values/cherish_arrays.xml | 15 +++++++++++++++ res/values/cherish_strings.xml | 7 +++++++ res/xml/cherish_settings_notifications.xml | 7 +++++++ 3 files changed, 29 insertions(+) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index 6289ec0..6eb1217 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -334,5 +334,20 @@ 6 7 + + + + @string/flashlight_on_call_disabled + @string/flashlight_on_call_ringer + @string/flashlight_on_call_silent + @string/flashlight_on_call_always + + + + 0 + 1 + 2 + 3 + diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 8e26705..5f472d8 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -515,4 +515,11 @@ Customize the layout of the navigation bar Show arrow keys while typing Display left and right cursor buttons in navigation bar while typing + + + Blink Flashlight for call + Disabled + Only in ringer mode + Only when ringer is silent + Always diff --git a/res/xml/cherish_settings_notifications.xml b/res/xml/cherish_settings_notifications.xml index 380558f..10f248c 100644 --- a/res/xml/cherish_settings_notifications.xml +++ b/res/xml/cherish_settings_notifications.xml @@ -42,6 +42,13 @@ + +