From 023509c8955159d96d99510117ddd3efe7d83de6 Mon Sep 17 00:00:00 2001 From: Yuri Lin Date: Thu, 26 Dec 2024 17:23:40 -0500 Subject: [PATCH] Send APP_NOTIFICATION_PROMOTION_SETTINGS intent to the preference This adds APP_NOTIFICATION_PROMOTION_SETTINGS to the set of intents that can go to AppNotificationSettings, and additionally adds the appropriate highlight key when the fragment is started with that intent action. Flag: android.app.ui_rich_ongoing Test: manual with flag on & off via sending intents over adb; AppNotificationSettingsTest Bug: 369150427 Change-Id: I1c48fdae161979f1a221f7c57e83e94f6aadc306 --- AndroidManifest.xml | 5 + .../app/AppNotificationSettings.java | 27 +++++ ...otedNotificationsPreferenceController.java | 2 +- .../app/AppNotificationSettingsTest.java | 102 ++++++++++++++++++ 4 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 tests/robotests/src/com/android/settings/notification/app/AppNotificationSettingsTest.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d9e759b8366..1a9aa56b50f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -4066,6 +4066,11 @@ + + + +