From 3562c9744117b24b7ed4a9bbfe4b875436f2ba28 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 28 May 2019 10:38:55 -0400 Subject: [PATCH] Add snooze notification setting Test: atest Bug: 133494458 Change-Id: I3c0534860aaeb374384c4e30764313b1cb83c82a --- res/values/strings.xml | 3 + res/xml/configure_notification_settings.xml | 5 + ...noozeNotificationPreferenceController.java | 56 +++++++++ ...eNotificationPreferenceControllerTest.java | 109 ++++++++++++++++++ 4 files changed, 173 insertions(+) create mode 100644 src/com/android/settings/notification/SnoozeNotificationPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/notification/SnoozeNotificationPreferenceControllerTest.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 171fe42d2cd..b7090088bc3 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7901,6 +7901,9 @@ Automatically show suggested actions & replies + + Allow notification snoozing + Hide icons from gentle notifications diff --git a/res/xml/configure_notification_settings.xml b/res/xml/configure_notification_settings.xml index 224a9107414..63f67510490 100644 --- a/res/xml/configure_notification_settings.xml +++ b/res/xml/configure_notification_settings.xml @@ -79,6 +79,11 @@ android:order="15" settings:initialExpandedChildrenCount="0"> + +