Julia Reynolds | ac3f7e8 | 2017-10-13 15:12:07 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 4f3b556 | 2018-01-30 11:28:38 -0500 | [diff] [blame] | 18 | xmlns:settings="http://schemas.android.com/apk/res-auto" |
Julia Reynolds | 5766d6e | 2018-04-19 13:15:29 -0400 | [diff] [blame] | 19 | android:key="app_notifications"> |
Julia Reynolds | ac3f7e8 | 2017-10-13 15:12:07 -0400 | [diff] [blame] | 20 | |
tmfang | dce94bb | 2018-11-26 18:41:01 +0800 | [diff] [blame] | 21 | <com.android.settingslib.widget.LayoutPreference |
Julia Reynolds | ac3f7e8 | 2017-10-13 15:12:07 -0400 | [diff] [blame] | 22 | android:key="pref_app_header" |
| 23 | android:layout="@layout/settings_entity_header" /> |
| 24 | |
tmfang | dce94bb | 2018-11-26 18:41:01 +0800 | [diff] [blame] | 25 | <com.android.settingslib.widget.LayoutPreference |
Julia Reynolds | ac3f7e8 | 2017-10-13 15:12:07 -0400 | [diff] [blame] | 26 | android:key="block" |
| 27 | android:layout="@layout/styled_switch_bar" /> |
| 28 | |
Julia Reynolds | aceccce | 2019-11-26 16:14:03 -0500 | [diff] [blame] | 29 | <com.android.settings.notification.app.NotificationFooterPreference |
Julia Reynolds | 4f3b556 | 2018-01-30 11:28:38 -0500 | [diff] [blame] | 30 | android:key="block_desc" /> |
| 31 | |
Mady Mellor | 409c3df | 2020-03-05 18:31:39 -0800 | [diff] [blame] | 32 | |
Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 33 | <!-- Conversations added here --> |
| 34 | <PreferenceCategory |
| 35 | android:title="@string/conversations_category_title" |
| 36 | android:key="conversations" |
| 37 | android:visibility="gone" |
| 38 | settings:allowDividerAbove="false" |
Julia Reynolds | eca1e4d | 2020-05-15 11:31:44 -0400 | [diff] [blame] | 39 | settings:allowDividerBelow="false"> |
| 40 | <com.android.settingslib.RestrictedSwitchPreference |
| 41 | android:key="invalid_conversation_switch" |
| 42 | android:title="@string/conversation_section_switch_title" /> |
| 43 | <Preference |
| 44 | android:key="invalid_conversation_info"/> |
| 45 | </PreferenceCategory> |
| 46 | |
| 47 | <!--Bubbles --> |
| 48 | <Preference |
| 49 | android:key="bubble_pref_link" |
| 50 | android:title="@string/notification_bubbles_title" |
| 51 | android:icon="@drawable/ic_create_bubble" |
| 52 | settings:allowDividerAbove="false" |
| 53 | settings:controller="com.android.settings.notification.app.BubbleSummaryPreferenceController"> |
| 54 | </Preference> |
Julia Reynolds | 976a07b | 2020-02-05 12:41:06 -0500 | [diff] [blame] | 55 | |
Julia Reynolds | 4f3b556 | 2018-01-30 11:28:38 -0500 | [diff] [blame] | 56 | <!-- Channels/Channel groups added here --> |
Julia Reynolds | a295d71 | 2019-07-01 13:44:39 -0400 | [diff] [blame] | 57 | <PreferenceCategory |
| 58 | android:key="channels" |
| 59 | android:layout="@layout/empty_view" |
Julia Reynolds | eca1e4d | 2020-05-15 11:31:44 -0400 | [diff] [blame] | 60 | settings:allowDividerAbove="true" |
Julia Reynolds | a295d71 | 2019-07-01 13:44:39 -0400 | [diff] [blame] | 61 | settings:allowDividerBelow="false" /> |
Julia Reynolds | 4f3b556 | 2018-01-30 11:28:38 -0500 | [diff] [blame] | 62 | |
Julia Reynolds | e2897ae | 2018-04-19 10:04:53 -0400 | [diff] [blame] | 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 | |
Julia Reynolds | e2897ae | 2018-04-19 10:04:53 -0400 | [diff] [blame] | 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 | settings:useAdditionalSummary="true"/> |
| 80 | |
Julia Reynolds | 5766d6e | 2018-04-19 13:15:29 -0400 | [diff] [blame] | 81 | <PreferenceCategory |
| 82 | android:key="app_advanced" |
| 83 | android:order="1000" |
| 84 | settings:initialExpandedChildrenCount="0"> |
| 85 | <!-- Show badge --> |
| 86 | <com.android.settingslib.RestrictedSwitchPreference |
| 87 | android:key="badge" |
| 88 | android:title="@string/notification_badge_title" |
| 89 | settings:useAdditionalSummary="true" |
| 90 | android:order="1001" |
| 91 | settings:restrictedSwitchSummary="@string/enabled_by_admin" /> |
Julia Reynolds | 4e48da9 | 2019-03-26 09:04:22 -0400 | [diff] [blame] | 92 | <Preference |
Julia Reynolds | 5766d6e | 2018-04-19 13:15:29 -0400 | [diff] [blame] | 93 | android:key="app_link" |
Julia Reynolds | 0c45775 | 2019-01-31 13:13:30 -0500 | [diff] [blame] | 94 | android:order="1003" |
Julia Reynolds | 5766d6e | 2018-04-19 13:15:29 -0400 | [diff] [blame] | 95 | android:title="@string/app_settings_link" /> |
| 96 | |
| 97 | </PreferenceCategory> |
Julia Reynolds | ac3f7e8 | 2017-10-13 15:12:07 -0400 | [diff] [blame] | 98 | |
Julia Reynolds | aceccce | 2019-11-26 16:14:03 -0500 | [diff] [blame] | 99 | <com.android.settings.notification.app.NotificationFooterPreference |
Julia Reynolds | ac3f7e8 | 2017-10-13 15:12:07 -0400 | [diff] [blame] | 100 | android:key="desc" |
| 101 | android:order="5000" /> |
| 102 | |
Julia Reynolds | aceccce | 2019-11-26 16:14:03 -0500 | [diff] [blame] | 103 | <com.android.settings.notification.app.NotificationFooterPreference |
Julia Reynolds | ac3f7e8 | 2017-10-13 15:12:07 -0400 | [diff] [blame] | 104 | android:key="deleted" |
| 105 | android:order="8000" /> |
| 106 | |
| 107 | </PreferenceScreen> |