1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:key="conversation_settings"
21    android:title="" >
22
23    <com.android.settingslib.widget.LayoutPreference
24        android:key="pref_app_header"
25        android:layout="@layout/settings_entity_header"
26        settings:allowDividerBelow="true"/>
27
28    <com.android.settings.widget.SettingsMainSwitchPreference
29        android:key="block" />
30
31    <!-- important conversation -->
32    <com.android.settings.notification.app.ConversationPriorityPreference
33        android:key="priority"
34        android:title="@string/notification_conversation_important"
35        settings:allowDividerAbove="true"
36        settings:allowDividerBelow="true"/>
37
38    <!-- bubbles -->
39    <com.android.settingslib.RestrictedSwitchPreference
40        android:key="bubble_pref"
41        android:title="@string/bubbles_conversation_toggle_title"
42        android:summary="@string/bubbles_conversation_toggle_summary"
43        android:icon="@drawable/ic_create_bubble"
44        settings:restrictedSwitchSummary="@string/enabled_by_admin" />
45
46    <com.android.settingslib.widget.FooterPreference
47        android:key="block_desc"
48        settings:allowDividerAbove="false"/>
49
50        <!-- peeking -->
51        <com.android.settingslib.RestrictedSwitchPreference
52            android:key="high_importance"
53            android:title="@string/notification_importance_high_title"
54            android:icon="@drawable/ic_notification_peek"
55            android:summary="@string/notification_channel_summary_high"/>
56
57        <!-- ringtone -->
58        <com.android.settings.notification.app.NotificationSoundPreference
59            android:key="ringtone"
60            android:title="@string/notification_channel_sound_title"
61            android:dialogTitle="@string/notification_channel_sound_title"
62            android:icon="@drawable/ic_notifications"
63            android:showSilent="true"
64            android:showDefault="true"/>
65
66        <!-- Visibility Override -->
67        <com.android.settings.RestrictedListPreference
68            android:key="visibility_override"
69            android:icon="@drawable/ic_notification_vis_override"
70            android:title="@string/app_notification_visibility_override_title"/>
71
72        <!-- Show badge -->
73        <com.android.settingslib.RestrictedSwitchPreference
74            android:key="badge"
75            android:title="@string/notification_channel_badge_title"
76            android:icon="@drawable/ic_notification_dot"
77            settings:restrictedSwitchSummary="@string/enabled_by_admin"/>
78
79        <!-- Lights -->
80        <com.android.settingslib.RestrictedSwitchPreference
81            android:key="lights"
82            android:icon="@drawable/ic_lightbulb_outline_24"
83            android:title="@string/notification_show_lights_title"/>
84
85        <!-- Vibration -->
86        <com.android.settingslib.RestrictedSwitchPreference
87            android:key="vibrate"
88            android:icon="@drawable/ic_volume_ringer_vibrate"
89            android:title="@string/notification_vibrate_title" />
90
91    <!-- demote -->
92    <Preference
93        android:key="demote"
94        android:icon="@drawable/ic_demote_conversation"
95        android:title="@string/demote_conversation_title"
96        android:summary="@string/demote_conversation_summary"
97        settings:allowDividerAbove="true"/>
98
99    <!-- only used in ChannelPanelActivity -->
100    <Preference
101        android:key="convo_promote"
102        android:icon="@drawable/ic_promote_conversation"
103        android:title="@string/promote_conversation_title"
104        android:summary="@string/promote_conversation_summary" />
105
106</PreferenceScreen>
107