blob: 8ca4e0ddda18b3b1aa27a56bf79d4d46d02eee34 [file] [log] [blame]
Julia Reynoldsac3f7e82017-10-13 15:12:07 -04001<?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 Reynolds4f3b5562018-01-30 11:28:38 -050018 xmlns:settings="http://schemas.android.com/apk/res-auto"
Julia Reynolds5766d6e2018-04-19 13:15:29 -040019 android:key="app_notifications">
Julia Reynoldsac3f7e82017-10-13 15:12:07 -040020
tmfangdce94bb2018-11-26 18:41:01 +080021 <com.android.settingslib.widget.LayoutPreference
Julia Reynoldsac3f7e82017-10-13 15:12:07 -040022 android:key="pref_app_header"
23 android:layout="@layout/settings_entity_header" />
24
tmfangdce94bb2018-11-26 18:41:01 +080025 <com.android.settingslib.widget.LayoutPreference
Julia Reynoldsac3f7e82017-10-13 15:12:07 -040026 android:key="block"
27 android:layout="@layout/styled_switch_bar" />
28
Julia Reynoldsaceccce2019-11-26 16:14:03 -050029 <com.android.settings.notification.app.NotificationFooterPreference
Julia Reynolds4f3b5562018-01-30 11:28:38 -050030 android:key="block_desc" />
31
Mady Mellor409c3df2020-03-05 18:31:39 -080032
Julia Reynolds976a07b2020-02-05 12:41:06 -050033 <!-- 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 Reynoldseca1e4d2020-05-15 11:31:44 -040039 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 Reynolds976a07b2020-02-05 12:41:06 -050055
Julia Reynolds4f3b5562018-01-30 11:28:38 -050056 <!-- Channels/Channel groups added here -->
Julia Reynoldsa295d712019-07-01 13:44:39 -040057 <PreferenceCategory
58 android:key="channels"
59 android:layout="@layout/empty_view"
Julia Reynoldseca1e4d2020-05-15 11:31:44 -040060 settings:allowDividerAbove="true"
Julia Reynoldsa295d712019-07-01 13:44:39 -040061 settings:allowDividerBelow="false" />
Julia Reynolds4f3b5562018-01-30 11:28:38 -050062
Julia Reynoldse2897ae2018-04-19 10:04:53 -040063 <!-- 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 Reynoldse2897ae2018-04-19 10:04:53 -040074 <!-- 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 Reynolds5766d6e2018-04-19 13:15:29 -040081 <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 Reynolds4e48da92019-03-26 09:04:22 -040092 <Preference
Julia Reynolds5766d6e2018-04-19 13:15:29 -040093 android:key="app_link"
Julia Reynolds0c457752019-01-31 13:13:30 -050094 android:order="1003"
Julia Reynolds5766d6e2018-04-19 13:15:29 -040095 android:title="@string/app_settings_link" />
96
97 </PreferenceCategory>
Julia Reynoldsac3f7e82017-10-13 15:12:07 -040098
Julia Reynoldsaceccce2019-11-26 16:14:03 -050099 <com.android.settings.notification.app.NotificationFooterPreference
Julia Reynoldsac3f7e82017-10-13 15:12:07 -0400100 android:key="desc"
101 android:order="5000" />
102
Julia Reynoldsaceccce2019-11-26 16:14:03 -0500103 <com.android.settings.notification.app.NotificationFooterPreference
Julia Reynoldsac3f7e82017-10-13 15:12:07 -0400104 android:key="deleted"
105 android:order="8000" />
106
107</PreferenceScreen>