From 2f720296ae84af3928ab89aedaecdc586b439374 Mon Sep 17 00:00:00 2001 From: maxwen Date: Tue, 18 May 2021 13:19:07 +0530 Subject: [PATCH] [SQUASHED] Cherish: Add ambient pulse and aod notifications [2/2] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @/SKULSHADY - Clean up and adapted for A11 SDB: improvise the enabling/disabling of colorpicker preference to avoid fc Co-authored-by: maxwen Co-authored-by: Ido Ben-Hur Signed-off-by: Hưng Phan --- res/values/cherish_arrays.xml | 49 ++++++++++ res/values/cherish_strings.xml | 32 +++++++ res/xml/cherish_settings_notifications.xml | 91 +++++++++++++++---- .../fragments/NotificationSettings.java | 79 ++++++++++++++++ 4 files changed, 235 insertions(+), 16 deletions(-) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index b4fb303..fbde7eb 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -542,4 +542,53 @@ 7 8 + + + + @string/pulse_ambient_light_color_mode_notification + @string/pulse_ambient_light_color_mode_wall + @string/pulse_ambient_light_color_mode_accent + @string/pulse_ambient_light_color_mode_custom + + + 0 + 1 + 2 + 3 + + + + @string/pulse_ambient_light_layout_faded + @string/pulse_ambient_light_layout_solid + + + 0 + 1 + + + @string/pulse_ambient_light_repeat_direction_restart + @string/pulse_ambient_light_repeat_direction_reverse + + + 0 + 1 + + + + + @string/ambient_notification_light_timeout_forever + @string/ambient_notification_light_timeout_half_minute + @string/ambient_notification_light_timeout_minute + @string/ambient_notification_light_timeout_three_minutes + @string/ambient_notification_light_timeout_five_minutes + @string/ambient_notification_light_timeout_ten_minutes + + + 0 + 30 + 60 + 180 + 300 + 600 + diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 62e6041..8b81cf1 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -799,4 +799,36 @@ Percent of pixels to disable Burn-in protection Prevents burn-in on OLED devices by shifting pixels every so often + + + Screen edge lighting + Edge lighting + Light up the side edges of the screen on notification pulse + Custom color + Light color + Automatic (Notification Based) + Automatic (Wallpaper Based) + Accent + Custom + Light duration + Light repeat count + Show always + Show lights for all doze events and not just notifications + Light repeat mode + Restart + Reverse + Light view + Solid + Faded + Show on AOD + Show lights on Always On Display + Hide AOD content + Hide AOD content when lights are showing + Timeout + Forever + 30 seconds + 1 minute + 3 minutes + 5 minutes + 10 minutes diff --git a/res/xml/cherish_settings_notifications.xml b/res/xml/cherish_settings_notifications.xml index 813a217..72805dc 100644 --- a/res/xml/cherish_settings_notifications.xml +++ b/res/xml/cherish_settings_notifications.xml @@ -18,29 +18,88 @@ android:title="@string/notifications_title" xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> - + + + + + + + + + + + + + + + + +