1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2024 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:title="@string/notification_bundle_title"> 22 23 <com.android.settingslib.widget.IllustrationPreference 24 android:key="illustration" 25 settings:searchable="false" 26 android:selectable="false" 27 app:lottie_cacheComposition="false" 28 settings:dynamicColor="true"/> 29 30 <com.android.settingslib.widget.TopIntroPreference 31 android:key="feature_description" 32 settings:searchable="false" 33 android:title="@string/notification_bundle_description"/> 34 35 <PreferenceCategory 36 android:key="enabled_settings"> 37 38 <com.android.settingslib.widget.MainSwitchPreference 39 android:key="global_pref" 40 android:title="@string/notification_bundle_main_control_title" /> 41 42 <CheckBoxPreference 43 android:key="promotions" 44 android:title="@*android:string/promotional_notification_channel_label"/> 45 46 <CheckBoxPreference 47 android:key="news" 48 android:title="@*android:string/news_notification_channel_label"/> 49 50 <CheckBoxPreference 51 android:key="social" 52 android:title="@*android:string/social_notification_channel_label"/> 53 54 <CheckBoxPreference 55 android:key="recs" 56 android:title="@*android:string/recs_notification_channel_label" /> 57 </PreferenceCategory> 58 59 <PreferenceCategory 60 android:key="notification_bundle_excluded_apps_list" 61 android:title="@string/notification_excluded_apps" 62 settings:controller="com.android.settings.notification.AdjustmentExcludedAppsPreferenceController"> 63 <com.android.settingslib.widget.TopIntroPreference 64 android:key="excluded_description" 65 android:title="@string/notification_bundle_excluded_description"/> 66 67 <!-- apps are added here --> 68 69 <Preference 70 android:key="notification_bundle_manage_apps" 71 android:order="1000" 72 android:icon="@drawable/ic_chevron_right_24dp" 73 android:title="@string/notification_summarization_manage_excluded_apps" 74 settings:controller="com.android.settings.notification.BundleManageAppsPreferenceController" 75 android:fragment="com.android.settings.applications.manageapplications.ManageApplications"> 76 <extra 77 android:name="classname" 78 android:value="com.android.settings.Settings$NotificationExcludeClassificationActivity"/> 79 </Preference> 80 </PreferenceCategory> 81</PreferenceScreen> 82