1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2020 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 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:key="conversation_settings" 21 android:title="" > 22 23 <com.android.settingslib.widget.LayoutPreference 24 android:key="pref_app_header" 25 android:layout="@layout/settings_entity_header" 26 settings:allowDividerBelow="true"/> 27 28 <!-- important conversation --> 29 <com.android.settings.notification.app.ConversationPriorityPreference 30 android:key="priority" 31 android:title="@string/notification_conversation_important" 32 settings:allowDividerAbove="true" 33 settings:allowDividerBelow="true"/> 34 35 <!-- bubbles --> 36 <com.android.settingslib.RestrictedSwitchPreference 37 android:key="bubble_pref" 38 android:title="@string/bubbles_conversation_toggle_title" 39 android:summary="@string/bubbles_conversation_toggle_summary" 40 android:icon="@drawable/ic_create_bubble" 41 settings:restrictedSwitchSummary="@string/enabled_by_admin" /> 42 43 <com.android.settingslib.widget.FooterPreference 44 android:key="block_desc" 45 settings:allowDividerAbove="false"/> 46 47 <!-- peeking --> 48 <com.android.settingslib.RestrictedSwitchPreference 49 android:key="high_importance" 50 android:title="@string/notification_importance_high_title" 51 android:icon="@drawable/ic_notification_peek" 52 android:summary="@string/notification_channel_summary_high"/> 53 54 <!-- ringtone --> 55 <com.android.settings.notification.app.NotificationSoundPreference 56 android:key="ringtone" 57 android:title="@string/notification_channel_sound_title" 58 android:dialogTitle="@string/notification_channel_sound_title" 59 android:icon="@drawable/ic_notifications" 60 android:showSilent="true" 61 android:showDefault="true"/> 62 63 <!-- Visibility Override --> 64 <com.android.settings.RestrictedListPreference 65 android:key="visibility_override" 66 android:icon="@drawable/ic_notification_vis_override" 67 android:title="@string/app_notification_visibility_override_title"/> 68 69 <!-- Show badge --> 70 <com.android.settingslib.RestrictedSwitchPreference 71 android:key="badge" 72 android:title="@string/notification_channel_badge_title" 73 android:icon="@drawable/ic_notification_dot" 74 settings:restrictedSwitchSummary="@string/enabled_by_admin"/> 75 76 <!-- Lights --> 77 <com.android.settingslib.RestrictedSwitchPreference 78 android:key="lights" 79 android:icon="@drawable/ic_lightbulb_outline_24" 80 android:title="@string/notification_show_lights_title"/> 81 82 <!-- Vibration --> 83 <com.android.settingslib.RestrictedSwitchPreference 84 android:key="vibrate" 85 android:icon="@drawable/ic_volume_ringer_vibrate" 86 android:title="@string/notification_vibrate_title" /> 87 88 <!-- demote --> 89 <Preference 90 android:key="demote" 91 android:icon="@drawable/ic_demote_conversation" 92 android:title="@string/demote_conversation_title" 93 android:summary="@string/demote_conversation_summary" 94 settings:allowDividerAbove="true"/> 95 96</PreferenceScreen> 97