From 86c0007e1d831bb22180b7830386a1735586e632 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 28 Jan 2020 08:28:18 -0500 Subject: [PATCH] Add setting to hide silent notifs in status bar Test: atest Bug: 148444551 Change-Id: If7171ed36984b76552f3f795f0b4652dce5daad3 --- res/values/strings.xml | 3 + res/xml/configure_notification_settings.xml | 5 + ...ntleNotificationsPreferenceController.java | 76 ------------- .../SilentStatusBarPreferenceController.java | 55 +++++++++ ...NotificationsPreferenceControllerTest.java | 107 ------------------ ...lentStatusBarPreferenceControllerTest.java | 85 ++++++++++++++ 6 files changed, 148 insertions(+), 183 deletions(-) delete mode 100644 src/com/android/settings/notification/GentleNotificationsPreferenceController.java create mode 100644 src/com/android/settings/notification/SilentStatusBarPreferenceController.java delete mode 100644 tests/robotests/src/com/android/settings/notification/GentleNotificationsPreferenceControllerTest.java create mode 100644 tests/robotests/src/com/android/settings/notification/SilentStatusBarPreferenceControllerTest.java diff --git a/res/values/strings.xml b/res/values/strings.xml index a153249768d..c8f6ed5f3f0 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -8080,6 +8080,9 @@ Display in pull-down shade, status bar & on lock screen + + Hide silent notifications in status bar + Blink light diff --git a/res/xml/configure_notification_settings.xml b/res/xml/configure_notification_settings.xml index 7dea4e60047..6e8f701704b 100644 --- a/res/xml/configure_notification_settings.xml +++ b/res/xml/configure_notification_settings.xml @@ -87,6 +87,11 @@ android:order="15" settings:initialExpandedChildrenCount="0"> + +