Cherish: ambient light settings

idoybh (DerpFest) edits:
*Added switches dependencies
*Removed settings we don't need
*Reorganiazed, categorized and made strings make sense

Signed-off-by: Ido Ben-Hur <idoybh2@gmail.com>
Signed-off-by: AnkitGourav <Ankitgourav035@gmail.com>
This commit is contained in:
maxwen
2020-01-29 00:40:41 +01:00
committed by Hưng Phan
parent 818a7e1757
commit b94b45ac6d
2 changed files with 11 additions and 2 deletions

View File

@@ -634,6 +634,8 @@
<string name="pulse_ambient_light_duration">Edge light pulse duration</string>
<string name="edgelight_left">Left Edge</string>
<string name="edgelight_right">Right Edge</string>
<string name="ambient_notification_light_enabled_title">Always on ambient lights on notification</string>
<string name="ambient_notification_light_enabled_sumary">Show Always On light bars when receiving a notification</string>
<string name="ambient_notification_light_enabled_title">Show on AoD</string>
<string name="ambient_notification_light_enabled_sumary">Keep showing on always on display. Until the screen is turned on</string>
<string name="ambient_notification_light_hide_aod_title">Hide AoD content</string>
<string name="ambient_notification_light_hide_aod_sumary">Hide other AoD content when bars are showing</string>
</resources>

View File

@@ -24,6 +24,13 @@
android:summary="@string/ambient_notification_light_enabled_sumary"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="ambient_notification_light_hide_aod"
android:title="@string/ambient_notification_light_hide_aod_title"
android:summary="@string/ambient_notification_light_hide_aod_sumary"
android:dependency="ambient_notification_light_enabled"
android:defaultValue="false" />
<PreferenceCategory
android:title="@string/edgelight_left" >