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 (DerpFest) 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
This commit is contained in:
PMS22
2018-06-19 20:49:26 +02:00
committed by Hưng Phan
parent 22c8392de8
commit f1c6cf2a6a
4 changed files with 42 additions and 6 deletions

View File

@@ -735,4 +735,10 @@
<string name="center_notification_headers_title">Center notification headers</string>
<string name="center_notification_headers_summary">Whether to Center R style notification headers (Requires a SystemUI restart)</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>