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
21    <com.android.settingslib.widget.LayoutPreference
22        android:key="pref_app_header"
23        android:layout="@layout/settings_entity_header" />
24
25    <com.android.settingslib.widget.LayoutPreference
26        android:key="block"
27        android:layout="@layout/styled_switch_bar" />
28
29    <com.android.settings.notification.NotificationFooterPreference
30        android:key="block_desc" />
31
32    <!-- Channels/Channel groups added here -->
33    <PreferenceCategory
34        android:key="channels"
35        android:layout="@layout/empty_view"
36        settings:allowDividerAbove="false"
37        settings:allowDividerBelow="false" />
38
39    <!-- Importance toggle -->
40    <com.android.settingslib.RestrictedSwitchPreference
41        android:key="allow_sound"
42        android:title="@string/allow_interruption"
43        android:summary="@string/allow_interruption_summary" />
44
45    <!-- Visibility Override -->
46    <com.android.settings.RestrictedListPreference
47        android:key="visibility_override"
48        android:title="@string/app_notification_visibility_override_title"/>
49
50    <!-- Bypass DND -->
51    <com.android.settingslib.RestrictedSwitchPreference
52        android:key="bypass_dnd"
53        android:title="@string/app_notification_override_dnd_title"
54        android:summary="@string/app_notification_override_dnd_summary"
55        settings:useAdditionalSummary="true"/>
56
57    <PreferenceCategory
58        android:key="app_advanced"
59        android:order="1000"
60        settings:initialExpandedChildrenCount="0">
61        <!-- Show badge -->
62        <com.android.settingslib.RestrictedSwitchPreference
63            android:key="badge"
64            android:title="@string/notification_badge_title"
65            settings:useAdditionalSummary="true"
66            android:order="1001"
67            settings:restrictedSwitchSummary="@string/enabled_by_admin" />
68        <Preference
69            android:key="bubble_link_pref"
70            android:title="@string/notification_bubbles_title"
71            android:order="1002" />
72        <Preference
73            android:key="app_link"
74            android:order="1003"
75            android:title="@string/app_settings_link" />
76
77    </PreferenceCategory>
78
79    <com.android.settings.notification.NotificationFooterPreference
80        android:key="desc"
81        android:order="5000" />
82
83    <com.android.settings.notification.NotificationFooterPreference
84        android:key="deleted"
85        android:order="8000" />
86
87</PreferenceScreen>
88