1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 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:key="app_notifications" 20 android:title="@string/notifications_title"> 21 22 <com.android.settingslib.widget.LayoutPreference 23 android:key="pref_app_header" 24 android:layout="@layout/settings_entity_header" /> 25 26 <com.android.settings.widget.SettingsMainSwitchPreference 27 android:key="block" /> 28 29 <Preference 30 android:key="block_desc" /> 31 32 <!-- Conversations added here --> 33 <PreferenceCategory 34 android:title="@string/conversations_category_title" 35 android:key="conversations" 36 android:visibility="gone"> 37 38 </PreferenceCategory> 39 <com.android.settingslib.RestrictedSwitchPreference 40 android:key="invalid_conversation_switch" 41 android:title="@string/conversation_section_switch_title" /> 42 <Preference 43 android:key="invalid_conversation_info"/> 44 45 <!--Bubbles --> 46 <Preference 47 android:key="bubble_pref_link" 48 android:title="@string/notification_bubbles_title" 49 android:icon="@drawable/ic_create_bubble" 50 settings:controller="com.android.settings.notification.app.BubbleSummaryPreferenceController"> 51 </Preference> 52 53 <!-- Channels/Channel groups added here --> 54 <PreferenceCategory 55 android:key="channels" 56 android:layout="@layout/empty_view" /> 57 58 <!-- Importance toggle --> 59 <com.android.settingslib.RestrictedSwitchPreference 60 android:key="allow_sound" 61 android:title="@string/allow_interruption" 62 android:summary="@string/allow_interruption_summary" 63 settings:allowDividerAbove="true" 64 settings:allowDividerBelow="false" /> 65 66 <!-- Visibility Override --> 67 <com.android.settings.RestrictedListPreference 68 android:key="visibility_override" 69 android:title="@string/app_notification_visibility_override_title" 70 settings:allowDividerAbove="true" 71 settings:allowDividerBelow="false" /> 72 73 <!-- Bypass DND --> 74 <com.android.settingslib.RestrictedSwitchPreference 75 android:key="bypass_dnd" 76 android:title="@string/app_notification_override_dnd_title" 77 android:summary="@string/app_notification_override_dnd_summary" 78 settings:allowDividerAbove="true" 79 settings:allowDividerBelow="false" /> 80 81 <!-- Allow full-screen intents --> 82 <com.android.settingslib.RestrictedSwitchPreference 83 android:key="fsi_permission" 84 android:title="@string/app_notification_fsi_permission_title" 85 android:summary="@string/app_notification_fsi_permission_summary" 86 settings:allowDividerAbove="true" 87 settings:allowDividerBelow="false" /> 88 89 <!-- Show badge --> 90 <com.android.settingslib.RestrictedSwitchPreference 91 android:key="badge" 92 android:title="@string/notification_badge_title" 93 android:icon="@drawable/ic_notification_dot" 94 settings:useAdditionalSummary="true" 95 settings:restrictedSwitchSummary="@string/enabled_by_admin" 96 android:order="1001" 97 settings:allowDividerAbove="true" 98 settings:allowDividerBelow="false" /> 99 100 <Preference 101 android:key="app_link" 102 android:icon="@drawable/ic_settings_24dp" 103 android:title="@string/app_settings_link" 104 android:order="1003" 105 settings:allowDividerAbove="true" 106 settings:allowDividerBelow="false" /> 107 108 <com.android.settingslib.widget.FooterPreference 109 android:key="deleted" 110 android:icon="@drawable/ic_trash_can" 111 android:order="8000" 112 settings:allowDividerAbove="true" 113 settings:allowDividerBelow="false" /> 114 115</PreferenceScreen> 116