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
39    </PreferenceCategory>
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
46    <!--Bubbles -->
47    <Preference
48        android:key="bubble_pref_link"
49        android:title="@string/notification_bubbles_title"
50        android:icon="@drawable/ic_create_bubble"
51        settings:controller="com.android.settings.notification.app.BubbleSummaryPreferenceController">
52    </Preference>
53
54    <!-- Bundles added here -->
55    <PreferenceCategory
56        android:key="bundles"
57        android:title="@string/notification_bundles"
58        android:visibility="gone" />
59
60    <!-- Channels/Channel groups added here -->
61    <PreferenceCategory
62        android:key="channels"
63        android:layout="@layout/empty_view" />
64
65    <Preference
66        android:key="more"
67        android:title="@string/no_recent_channels"
68        android:icon="@drawable/ic_expand"/>
69
70    <!-- Importance toggle -->
71    <com.android.settingslib.RestrictedSwitchPreference
72        android:key="allow_sound"
73        android:title="@string/allow_interruption"
74        android:summary="@string/allow_interruption_summary"
75        settings:allowDividerAbove="true"
76        settings:allowDividerBelow="false" />
77
78    <!-- Visibility Override -->
79    <com.android.settings.RestrictedListPreference
80        android:key="visibility_override"
81        android:title="@string/app_notification_visibility_override_title"
82        settings:allowDividerAbove="true"
83        settings:allowDividerBelow="false" />
84
85    <!-- Bypass DND -->
86    <com.android.settingslib.RestrictedSwitchPreference
87        android:key="bypass_dnd"
88        android:title="@string/app_notification_override_dnd_title"
89        android:summary="@string/app_notification_override_dnd_summary"
90        settings:allowDividerAbove="true"
91        settings:allowDividerBelow="false" />
92
93    <!-- Allow full-screen intents -->
94    <com.android.settingslib.RestrictedSwitchPreference
95        android:key="fsi_permission"
96        android:title="@string/app_notification_fsi_permission_title"
97        android:summary="@string/app_notification_fsi_permission_summary"
98        settings:allowDividerAbove="true"
99        settings:allowDividerBelow="false" />
100
101    <!-- Show badge -->
102    <com.android.settingslib.RestrictedSwitchPreference
103        android:key="badge"
104        android:title="@string/notification_badge_title"
105        android:icon="@drawable/ic_notification_dot"
106        settings:useAdditionalSummary="true"
107        settings:restrictedSwitchSummary="@string/enabled_by_admin"
108        android:order="1001"
109        settings:allowDividerAbove="true"
110        settings:allowDividerBelow="false" />
111
112    <Preference
113        android:key="app_link"
114        android:icon="@drawable/ic_settings_24dp"
115        android:title="@string/app_settings_link"
116        android:order="1003"
117        settings:allowDividerAbove="true"
118        settings:allowDividerBelow="false" />
119
120    <com.android.settingslib.widget.FooterPreference
121        android:key="deleted"
122        android:icon="@drawable/ic_trash_can"
123        android:order="8000"
124        settings:allowDividerAbove="true"
125        settings:allowDividerBelow="false" />
126
127</PreferenceScreen>
128