Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 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 --> |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 29 | <com.android.settings.notification.app.ConversationPriorityPreference |
| 30 | android:key="priority" |
Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 31 | android:title="@string/notification_conversation_important" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 32 | settings:allowDividerAbove="true" |
| 33 | settings:allowDividerBelow="true"/> |
Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 34 | |
Julia Reynolds | cecc695 | 2020-04-17 16:08:26 -0400 | [diff] [blame] | 35 | <PreferenceCategory |
| 36 | android:key="bubbles" |
| 37 | android:title="@string/notification_bubbles_title"> |
| 38 | |
| 39 | <!-- bubbles --> |
| 40 | <com.android.settingslib.RestrictedSwitchPreference |
| 41 | android:key="bubble_pref" |
| 42 | android:title="@string/bubbles_conversation_toggle_title" |
| 43 | android:summary="@string/bubbles_conversation_toggle_summary" |
| 44 | android:icon="@drawable/ic_create_bubble" |
| 45 | settings:restrictedSwitchSummary="@string/enabled_by_admin" /> |
| 46 | |
| 47 | <Preference |
| 48 | android:key="notification_bubbles" |
| 49 | android:title="@string/bubbles_conversation_app_link" |
| 50 | /> |
| 51 | </PreferenceCategory> |
Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 52 | |
Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 53 | <!-- demote --> |
| 54 | <Preference |
| 55 | android:key="demote" |
| 56 | android:icon="@drawable/ic_demote_conversation" |
| 57 | android:title="@string/demote_conversation_title" |
| 58 | android:summary="@string/demote_conversation_summary" |
| 59 | settings:allowDividerAbove="true"/> |
| 60 | |
Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 61 | <com.android.settings.notification.app.NotificationFooterPreference |
| 62 | android:key="block_desc" |
| 63 | settings:allowDividerAbove="false"/> |
| 64 | |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 65 | <PreferenceCategory |
| 66 | android:key="channel_advanced" |
| 67 | android:order="50" |
| 68 | settings:initialExpandedChildrenCount="0"> |
| 69 | |
| 70 | <!-- peeking --> |
| 71 | <com.android.settingslib.RestrictedSwitchPreference |
| 72 | android:key="high_importance" |
| 73 | android:title="@string/notification_importance_high_title" |
| 74 | android:summary="@string/notification_channel_summary_high"/> |
| 75 | |
| 76 | <!-- ringtone --> |
| 77 | <com.android.settings.notification.app.NotificationSoundPreference |
| 78 | android:key="ringtone" |
| 79 | android:title="@string/notification_channel_sound_title" |
| 80 | android:dialogTitle="@string/notification_channel_sound_title" |
Julia Reynolds | 1a2e7ad | 2020-04-28 15:04:39 -0400 | [diff] [blame] | 81 | android:icon="@drawable/ic_notifications" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 82 | android:showSilent="true" |
| 83 | android:showDefault="true"/> |
| 84 | |
| 85 | <!-- Visibility Override --> |
| 86 | <com.android.settings.RestrictedListPreference |
| 87 | android:key="visibility_override" |
Julia Reynolds | 1a2e7ad | 2020-04-28 15:04:39 -0400 | [diff] [blame] | 88 | android:icon="@drawable/ic_lock_closed" |
Julia Reynolds | 94b04df | 2020-03-20 18:34:24 -0400 | [diff] [blame] | 89 | android:title="@string/app_notification_visibility_override_title"/> |
| 90 | |
| 91 | <!-- Show badge --> |
| 92 | <com.android.settingslib.RestrictedSwitchPreference |
| 93 | android:key="badge" |
| 94 | android:title="@string/notification_channel_badge_title" |
| 95 | settings:useAdditionalSummary="true" |
| 96 | settings:restrictedSwitchSummary="@string/enabled_by_admin"/> |
| 97 | |
| 98 | <!-- Lights --> |
| 99 | <com.android.settingslib.RestrictedSwitchPreference |
| 100 | android:key="lights" |
| 101 | android:title="@string/notification_show_lights_title" |
| 102 | settings:useAdditionalSummary="true"/> |
| 103 | |
| 104 | <!-- Vibration --> |
| 105 | <com.android.settingslib.RestrictedSwitchPreference |
| 106 | android:key="vibrate" |
| 107 | android:icon="@drawable/ic_volume_ringer_vibrate" |
| 108 | android:title="@string/notification_vibrate_title" |
| 109 | settings:useAdditionalSummary="true" /> |
| 110 | </PreferenceCategory> |
| 111 | |
Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 112 | </PreferenceScreen> |