Cherish: Add Flashlight blink on incoming calls [3/3]

- 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 <phandinhhungvp2001@gmail.com>
This commit is contained in:
PMS22
2018-06-19 20:49:26 +02:00
committed by Hưng Phan
parent 382eeb9172
commit 3a4a64be72
3 changed files with 29 additions and 0 deletions

View File

@@ -369,4 +369,11 @@
<string name="qs_set_animation_style">%1$s</string>
<string name="qs_set_animation_duration">%1$s</string>
<string name="qs_set_animation_interpolator">%1$s</string>
<!-- Blink flashlight for incoming calls -->
<string name="flashlight_on_call_title">Blink Flashlight for call</string>
<string name="flashlight_on_call_disabled">Disabled</string>
<string name="flashlight_on_call_ringer">Only in ringer mode</string>
<string name="flashlight_on_call_silent">Only when ringer is silent</string>
<string name="flashlight_on_call_always">Always</string>
</resources>