1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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.car.developeroptions.notification.NotificationFooterPreference
30        android:key="block_desc" />
31
32    <!-- Channels/Channel groups added here -->
33
34    <!-- Importance toggle -->
35    <com.android.settingslib.RestrictedSwitchPreference
36        android:key="allow_sound"
37        android:title="@string/allow_interruption"
38        android:summary="@string/allow_interruption_summary" />
39
40    <!-- Visibility Override -->
41    <com.android.car.developeroptions.RestrictedListPreference
42        android:key="visibility_override"
43        android:title="@string/app_notification_visibility_override_title"/>
44
45    <!-- Bypass DND -->
46    <com.android.settingslib.RestrictedSwitchPreference
47        android:key="bypass_dnd"
48        android:title="@string/app_notification_override_dnd_title"
49        android:summary="@string/app_notification_override_dnd_summary"
50        settings:useAdditionalSummary="true"/>
51
52    <PreferenceCategory
53        android:key="app_advanced"
54        android:order="1000"
55        settings:initialExpandedChildrenCount="0">
56        <!-- Show badge -->
57        <com.android.settingslib.RestrictedSwitchPreference
58            android:key="badge"
59            android:title="@string/notification_badge_title"
60            settings:useAdditionalSummary="true"
61            android:order="1001"
62            settings:restrictedSwitchSummary="@string/enabled_by_admin" />
63        <Preference
64            android:key="bubble_link_pref"
65            android:title="@string/notification_bubbles_title"
66            android:order="1002" />
67        <Preference
68            android:key="app_link"
69            android:order="1003"
70            android:title="@string/app_settings_link" />
71
72    </PreferenceCategory>
73
74    <com.android.car.developeroptions.notification.NotificationFooterPreference
75        android:key="desc"
76        android:order="5000" />
77
78    <com.android.car.developeroptions.notification.NotificationFooterPreference
79        android:key="deleted"
80        android:order="8000" />
81
82</PreferenceScreen>
83