From bf6d9580730639b6d0d3070ee57c0f7286e69923 Mon Sep 17 00:00:00 2001 From: Yining Liu Date: Thu, 16 May 2024 05:03:29 +0000 Subject: [PATCH] Update Settings Page for Avalanche Suppression Update the Settings Page for the Avalanche visual and auditory Suppression. Bug: 330606963 Test: PoliteNotificationPreferenceControllerTest Flag: com.android.server.notification.polite_notifications Change-Id: I60b64a0c00cafb22ac1db74285002862affb82d2 --- res/values/strings.xml | 6 +- res/xml/polite_notifications_settings.xml | 45 ++++++++---- ...oliteNotifWorkProfileToggleController.java | 73 +++++++++++++++++-- ...otificationGlobalPreferenceController.java | 63 ++++++++++++++++ 4 files changed, 166 insertions(+), 21 deletions(-) create mode 100644 src/com/android/settings/notification/PoliteNotificationGlobalPreferenceController.java diff --git a/res/values/strings.xml b/res/values/strings.xml index e62bf14bf24..0cf6ab11def 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -8680,7 +8680,9 @@ More settings are available inside this app - Notification cooldown + Cooldown + Use Cooldown + When you get many notifications within a short time span, your device will minimize sound interruptions and pop-ups on the screen. Calls, alarms, and priority conversations will still alert as notmal, and all delivered notifications are easy to find in the Shade. Apply cooldown to all notifications Gradually lower the notification volume when you get many successive notifications from the same app Apply cooldown to conversations @@ -8690,7 +8692,7 @@ Vibrate when unlocked Only vibrate when screen is unlocked Apply to work profiles - Apply the notification cooldown settings from your personal profile to your work profile + Apply to work profile apps diff --git a/res/xml/polite_notifications_settings.xml b/res/xml/polite_notifications_settings.xml index 36f64f29d84..a854a714e81 100644 --- a/res/xml/polite_notifications_settings.xml +++ b/res/xml/polite_notifications_settings.xml @@ -17,22 +17,41 @@ - + + + + + + + - + + + + + + + + + + + + + + + + + + +