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
This commit is contained in:
Yuri Lin
2024-12-26 17:23:40 -05:00
parent d5c0851c0b
commit 023509c895
4 changed files with 135 additions and 1 deletions

View File

@@ -4066,6 +4066,11 @@
<action android:name="android.settings.APP_NOTIFICATION_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:priority="2"
android:featureFlag="android.app.ui_rich_ongoing">
<action android:name="android.settings.APP_NOTIFICATION_PROMOTION_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
android:value="com.android.settings.notification.app.AppNotificationSettings" />
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"