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 android:selectable="false" /> 26 27 <com.android.settings.widget.SettingsMainSwitchPreference 28 android:key="block" /> 29 30 <Preference 31 android:key="block_desc" /> 32 33 <!-- Conversations added here --> 34 <PreferenceCategory 35 android:title="@string/conversations_category_title" 36 android:key="conversations" 37 android:visibility="gone" 38 android:layout="@layout/empty_view" > 39 40 </PreferenceCategory> 41 42 <!-- Bundles added here --> 43 <PreferenceCategory 44 android:key="bundles" 45 android:title="@string/notification_bundles" 46 android:visibility="gone" 47 android:layout="@layout/empty_view" /> 48 49 <!-- Channels/Channel groups added here --> 50 <PreferenceCategory 51 android:key="channels" 52 android:layout="@layout/empty_view" /> 53 54 <Preference 55 android:key="more" 56 android:title="@string/no_recent_channels" 57 android:icon="@drawable/ic_expand"/> 58 59 <PreferenceCategory 60 android:key="pre_channels_fields" 61 android:layout="@layout/empty_view" 62 android:visibility="gone" > 63 <!-- Importance toggle --> 64 <com.android.settingslib.RestrictedSwitchPreference 65 android:key="allow_sound" 66 android:title="@string/allow_interruption" 67 android:summary="@string/allow_interruption_summary" /> 68 69 <!-- Visibility Override --> 70 <com.android.settings.RestrictedListPreference 71 android:key="visibility_override" 72 android:title="@string/app_notification_visibility_override_title" /> 73 74 <!-- Bypass DND --> 75 <com.android.settingslib.RestrictedSwitchPreference 76 android:key="bypass_dnd" 77 android:title="@string/app_notification_override_dnd_title" 78 android:summary="@string/app_notification_override_dnd_summary"/> 79 </PreferenceCategory> 80 81 <PreferenceCategory 82 android:key="app_wide" 83 android:title="@string/app_notification_settings" 84 settings:isPreferenceVisible="false"> 85 86 <!-- Whether the app can show promoted notifications --> 87 <com.android.settingslib.RestrictedSwitchPreference 88 android:key="promoted_switch" 89 android:title="@string/live_notifications_switch" 90 android:summary="@string/live_notifications_desc" /> 91 92 <com.android.settingslib.RestrictedSwitchPreference 93 android:key="key_summarization" 94 android:title="@string/notification_app_level_summarize_title" 95 android:summary="@string/notification_app_level_summarize_subtext" /> 96 97 <com.android.settingslib.RestrictedSwitchPreference 98 android:key="key_type" 99 android:title="@string/notification_app_level_bundle_title" 100 android:summary="@string/notification_app_level_bundle_subtext" /> 101 102 <com.android.settingslib.RestrictedSwitchPreference 103 android:key="invalid_conversation_switch" 104 android:title="@string/conversation_section_switch_title" /> 105 <Preference 106 android:key="invalid_conversation_info"/> 107 108 <!--Bubbles --> 109 <Preference 110 android:key="bubble_pref_link" 111 android:title="@string/notification_bubbles_title" 112 android:icon="@drawable/ic_create_bubble" 113 settings:controller="com.android.settings.notification.app.BubbleSummaryPreferenceController"> 114 </Preference> 115 116 <!-- Allow full-screen intents --> 117 <com.android.settingslib.RestrictedSwitchPreference 118 android:key="fsi_permission" 119 android:title="@string/app_notification_fsi_permission_title" 120 android:summary="@string/app_notification_fsi_permission_summary"/> 121 122 <!-- Show badge --> 123 <com.android.settingslib.RestrictedSwitchPreference 124 android:key="badge" 125 android:title="@string/notification_badge_title" 126 android:icon="@drawable/ic_notification_dot" 127 settings:useAdditionalSummary="true" 128 settings:restrictedSwitchSummary="@string/enabled_by_admin" 129 android:order="1001"/> 130 131 <Preference 132 android:key="app_link" 133 android:icon="@drawable/ic_settings_24dp" 134 android:title="@string/app_settings_link" 135 android:order="1003"/> 136 137 <com.android.settingslib.widget.FooterPreference 138 android:key="deleted" 139 android:icon="@drawable/ic_trash_can" 140 android:order="8000"/> 141 </PreferenceCategory> 142 143</PreferenceScreen> 144