From c04425fe38f38d50316d80e6be73563e8e3e796f Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 29 Jan 2019 12:12:39 -0500 Subject: [PATCH] Add silent status bar icon setting Test: atest Bug: 123419917 Change-Id: I40fe580b76589c45a70365c09a966a76b5bc882b --- res/values/strings.xml | 6 + res/xml/configure_notification_settings.xml | 6 + .../notification/NotificationBackend.java | 17 +++ .../SilentStatusBarPreferenceController.java | 58 +++++++++ ...lentStatusBarPreferenceControllerTest.java | 110 ++++++++++++++++++ 5 files changed, 197 insertions(+) create mode 100644 src/com/android/settings/notification/SilentStatusBarPreferenceController.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 1a92f7bc1c7..ecb74bbae71 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7590,6 +7590,12 @@ Work notifications + + Hide silent notification status icons + + + Hide icons for silent notifications in the status bar + Allow notification dots diff --git a/res/xml/configure_notification_settings.xml b/res/xml/configure_notification_settings.xml index e4d948bef88..ca826095f08 100644 --- a/res/xml/configure_notification_settings.xml +++ b/res/xml/configure_notification_settings.xml @@ -26,6 +26,12 @@ android:summary="@string/summary_placeholder" settings:searchable="false"/> + +