From 28bc10faba5f8eeadd369b74b7eeba6b0f5886cb Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Mon, 10 Feb 2020 09:25:39 -0500 Subject: [PATCH] Add a settings for notification history Test: atest Bug: 137396965 Change-Id: Id575bd8ef34f977200384f95c0244cbbb073e027 --- res/values/strings.xml | 6 + res/xml/configure_notification_settings.xml | 6 + ...tificationHistoryPreferenceController.java | 128 ++++++++++++++++ ...cationHistoryPreferenceControllerTest.java | 139 ++++++++++++++++++ 4 files changed, 279 insertions(+) create mode 100644 src/com/android/settings/notification/NotificationHistoryPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/notification/NotificationHistoryPreferenceControllerTest.java diff --git a/res/values/strings.xml b/res/values/strings.xml index ad56f21a4b4..dc1b1c65c7a 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -8028,6 +8028,12 @@ Automatically show suggested actions & replies + + Turn on notification history to keep track of past notifications and snoozed notifications + + + Notification history + Allow notification snoozing diff --git a/res/xml/configure_notification_settings.xml b/res/xml/configure_notification_settings.xml index 021705703c5..419270a9529 100644 --- a/res/xml/configure_notification_settings.xml +++ b/res/xml/configure_notification_settings.xml @@ -86,6 +86,12 @@ android:order="15" settings:initialExpandedChildrenCount="0"> + +