Files
app_Settings/res/xml/summarization_notifications_settings.xml
Valentin Iftime 6762d2c95c Show/hide excluded apps list for notification bundles/summarization settings
The main toggle controls the excluded apps list and "Manage apps" button for the notification bundles and summarization settings.

Flag: android.app.notification_classification_ui

Test: atest BundleCombinedPreferenceControllerTest SummarizationCombinedPreferenceControllerTest
Bug: 432471968
Change-Id: Idffe797caed4dab02963037fb030a7a71c4658da
2025-07-23 14:40:25 +02:00

71 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2025 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:title="@string/notification_summarization_title">
<com.android.settingslib.widget.TopIntroPreference
android:key="feature_description"
settings:searchable="false"
android:title="@string/notification_summarization_description"/>
<com.android.settingslib.widget.IllustrationPreference
android:key="notification_summarization_illustration"
settings:searchable="false"
android:selectable="false"
app:lottie_rawRes="@raw/lottie_notification_summarization"
app:lottie_cacheComposition="false"
settings:dynamicColor="true"/>
<PreferenceCategory
android:key="enabled_settings">
<com.android.settingslib.widget.MainSwitchPreference
android:key="global_pref"
android:title="@string/notification_summarization_main_control_title" />
<SwitchPreferenceCompat
android:key="work_profile_pref"
android:title="@string/notification_adjustment_work_switch_title" />
<PreferenceCategory
android:key="notification_summarization_excluded_apps_list"
android:title="@string/notification_excluded_apps"
settings:controller="com.android.settings.notification.AdjustmentExcludedAppsPreferenceController">
<!-- apps are added here -->
<Preference
android:key="notification_summarization_manage_apps"
android:order="1000"
android:icon="@drawable/ic_chevron_right_24dp"
android:title="@string/notification_summarization_manage_excluded_apps"
settings:controller="com.android.settings.notification.SummarizationManageAppsPreferenceController"
android:fragment="com.android.settings.applications.manageapplications.ManageApplications">
<extra
android:name="classname"
android:value="com.android.settings.Settings$NotificationExcludeSummarizationActivity"/>
</Preference>
</PreferenceCategory>
</PreferenceCategory>
</PreferenceScreen>