1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto" 19 android:title="@string/configure_notification_settings" 20 android:key="configure_notification_settings"> 21 22 <PreferenceCategory 23 android:key="general_notifications_category" 24 android:title="@string/general_notification_header"> 25 <!-- See all apps button --> 26 <Preference 27 android:key="all_notifications" 28 android:order="10" 29 android:title="@string/app_notification_field" 30 android:summary="@string/app_notification_field_summary" 31 android:fragment="com.android.settings.applications.manageapplications.ManageApplications"> 32 <extra 33 android:name="classname" 34 android:value="com.android.settings.Settings$NotificationAppListActivity"/> 35 </Preference> 36 <Preference 37 android:key="notification_history" 38 android:order="11" 39 android:title="@string/notification_history" 40 android:summary="@string/notification_history_summary"> 41 <intent 42 android:action="android.intent.action.MAIN" 43 android:targetPackage="com.android.settings" 44 android:targetClass="com.android.settings.notification.history.NotificationHistoryActivity" /> 45 </Preference> 46 </PreferenceCategory> 47 48 <PreferenceCategory 49 android:key="conversation_category" 50 android:title="@string/conversation_notifs_category"> 51 <Preference 52 android:key="conversations" 53 android:order="1" 54 android:title="@string/conversations_category_title" 55 android:summary=" " 56 settings:controller="com.android.settings.notification.ConversationListSummaryPreferenceController" 57 android:fragment="com.android.settings.notification.app.ConversationListSettings" 58 /> 59 <Preference 60 android:key="notification_bubbles" 61 android:order="2" 62 android:title="@string/notification_bubbles_title" 63 android:summary="@string/notifications_bubble_setting_on_summary" 64 settings:controller="com.android.settings.notification.BubbleSummaryNotificationPreferenceController" 65 android:fragment="com.android.settings.notification.BubbleNotificationSettings" 66 /> 67 </PreferenceCategory> 68 69 <PreferenceCategory 70 android:key="configure_notifications_lock" 71 android:title="@string/lock_screen_notifications_title"> 72 <Preference 73 android:key="notification_access" 74 android:order="12" 75 android:title="@string/manage_notification_access_title" 76 android:summary="@string/manage_notification_access_summary" 77 android:fragment="com.android.settings.notification.NotificationAccessSettings" 78 settings:controller="com.android.settings.applications.specialaccess.notificationaccess.NotificationAccessController" /> 79 <!-- When device is locked --> 80 <com.android.settings.RestrictedListPreference 81 android:key="lock_screen_notifications" 82 android:order="13" 83 android:title="@string/lock_screen_notifs_title" 84 android:singleLineTitle="false" 85 android:summary="@string/summary_placeholder" /> 86 87 <com.android.settingslib.RestrictedSwitchPreference 88 android:key="lock_screen_redact" 89 android:order="14" 90 android:title="@string/lock_screen_notifs_redact" 91 android:summary="@string/lock_screen_notifs_redact_summary" 92 settings:controller="com.android.settings.notification.RedactNotificationPreferenceController" /> 93 94 <com.android.settingslib.RestrictedSwitchPreference 95 android:key="lock_screen_work_redact" 96 android:order="15" 97 android:title="@string/lock_screen_notifs_redact_work" 98 android:summary="@string/lock_screen_notifs_redact_work_summary" 99 settings:controller="com.android.settings.notification.RedactNotificationPreferenceController" /> 100 101 <SwitchPreferenceCompat 102 android:key="notification_lockscreen_bypass" 103 android:order="16" 104 android:title="@string/lockscreen_bypass_title" 105 android:summary="@string/lockscreen_bypass_summary" 106 settings:searchable="false" 107 settings:controller="com.android.settings.biometrics.face.FaceSettingsLockscreenBypassPreferenceController" /> 108 109 </PreferenceCategory> 110 111 <PreferenceCategory 112 android:key="sync_across_devices" 113 android:title="@string/sync_across_devices_title" 114 settings:controller="com.android.settings.notification.syncacrossdevices.SyncAcrossDevicesPreferenceController"/> 115 116 <PreferenceCategory 117 android:key="advanced_section_header" 118 android:title="@string/advanced_section_header"> 119 120 <!--Adaptive Notifications--> 121 <Preference 122 android:fragment="com.android.settings.notification.PoliteNotificationsPreferenceFragment" 123 android:key="polite_notifications_preference" 124 android:order="17" 125 android:persistent="false" 126 android:title="@string/notification_polite_title" 127 settings:controller="com.android.settings.notification.PoliteNotificationsPreferenceController" /> 128 129 <com.android.settingslib.RestrictedPreference 130 android:key="zen_mode_notifications" 131 android:order="18" 132 android:title="@string/zen_mode_settings_title" 133 settings:useAdminDisabledSummary="true" 134 android:fragment="com.android.settings.notification.zen.ZenModeSettings" 135 settings:controller="com.android.settings.notification.zen.ZenModePreferenceController" 136 /> 137 138 <SwitchPreferenceCompat 139 android:key="lock_screen_show_only_unseen_notifs" 140 android:order="19" 141 android:title="@string/unseen_notifs_lock_screen" 142 android:summary="@string/unseen_notifs_lock_screen_summary" 143 settings:controller="com.android.settings.notification.ShowOnlyUnseenNotificationsOnLockscreenPreferenceController" 144 /> 145 146 <Preference 147 android:fragment="com.android.settings.accessibility.FlashNotificationsPreferenceFragment" 148 android:key="flash_notifications_preference" 149 android:order="20" 150 android:persistent="false" 151 android:title="@string/flash_notifications_title" 152 settings:searchable="false" 153 settings:controller="com.android.settings.accessibility.FlashNotificationsPreferenceController" /> 154 155 <com.android.settingslib.RestrictedPreference 156 android:key="app_and_notif_cell_broadcast_settings" 157 android:order="21" 158 android:title="@string/cell_broadcast_settings" 159 settings:useAdminDisabledSummary="true"> 160 <intent 161 android:action="android.intent.action.MAIN" 162 android:targetPackage="@string/config_cell_broadcast_receiver_package" 163 android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastSettings"/> 164 </com.android.settingslib.RestrictedPreference> 165 166 <SwitchPreferenceCompat 167 android:key="silent_icons" 168 android:order="22" 169 android:title="@string/silent_notifications_status_bar" 170 settings:controller="com.android.settings.notification.SilentStatusBarPreferenceController"/> 171 172 <SwitchPreferenceCompat 173 android:key="show_snooze_options" 174 android:order="23" 175 android:title="@string/snooze_options_title" 176 settings:controller="com.android.settings.notification.SnoozeNotificationPreferenceController" /> 177 178 <!-- Notification badging --> 179 <SwitchPreferenceCompat 180 android:key="notification_badging" 181 android:order="24" 182 android:title="@string/notification_badging_title" 183 settings:controller="com.android.settings.notification.BadgingNotificationPreferenceController"/> 184 185 <!-- Pulse notification light, on devices that support it --> 186 <SwitchPreferenceCompat 187 android:key="notification_pulse" 188 android:order="25" 189 android:title="@string/notification_pulse_title" 190 settings:controller="com.android.settings.notification.PulseNotificationPreferenceController"/> 191 192 <SwitchPreferenceCompat 193 android:key="notification_assistant" 194 android:order="26" 195 android:title="@string/notification_assistant_title" 196 android:summary="@string/notification_assistant_summary" 197 settings:controller="com.android.settings.notification.NotificationAssistantPreferenceController"/> 198 199 </PreferenceCategory> 200</PreferenceScreen> 201