From 3a4a64be72f7c9847543bae4fe8ef64d0dacc88f 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 78d7a78..1a24f00 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -258,5 +258,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 5349216..371849a 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -369,4 +369,11 @@ %1$s %1$s %1$s + + + 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 @@ + +