blob: 6764e288d4333c251811e90577aaf5ccbe941ef2 [file] [log] [blame]
John Spurlockcc819a62014-04-20 16:19:53 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2014 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
Matthew Fritze5c5a9212018-03-21 13:46:11 -070018<PreferenceScreen
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:settings="http://schemas.android.com/apk/res-auto"
Julia Reynolds3b29ff22020-02-13 11:17:04 -050021 android:title="@string/zen_mode_settings_title">
Julia Reynolds9aac3ce2018-03-15 09:34:03 -040022
Beverlya58e52a2017-10-27 14:44:23 -040023 <!-- Turn on DND button -->
tmfangdce94bb2018-11-26 18:41:01 +080024 <com.android.settingslib.widget.LayoutPreference
Fan Zhang7df64452019-04-12 15:31:25 -070025 android:key="zen_mode_toggle"
26 android:title="@string/zen_mode_settings_title"
Beverly69d11b22018-10-26 16:01:17 -040027 android:selectable="false"
28 android:layout="@layout/zen_mode_settings_button"
Fan Zhang7df64452019-04-12 15:31:25 -070029 settings:allowDividerBelow="true"
30 settings:keywords="@string/keywords_zen_mode_settings"/>
Beverlya58e52a2017-10-27 14:44:23 -040031
Julia Reynoldsb5ea53a2020-01-08 12:27:08 -050032 <PreferenceCategory
33 android:key="zen_mode_settings_category_behavior"
34 android:title="@string/zen_category_behavior">
35 <!-- People -->
36 <Preference
37 android:key="zen_mode_behavior_people"
38 android:title="@string/zen_category_people"
39 android:fragment="com.android.settings.notification.zen.ZenModePeopleSettings" />
40
41 <!-- Apps -->
42 <Preference
43 android:key="zen_mode_behavior_apps"
44 android:title="@string/zen_category_apps"
45 android:fragment="com.android.settings.notification.zen.ZenModeBypassingAppsSettings" />
46
47 <!-- All sounds -->
48 <Preference
49 android:key="zen_sound_vibration_settings"
50 android:title="@string/zen_category_exceptions"
51 android:fragment="com.android.settings.notification.zen.ZenModeSoundVibrationSettings" />
52 </PreferenceCategory>
53
54 <!-- Automatic rules -->
55 <Preference
56 android:key="zen_mode_automation_settings"
Beverly509273c2020-03-18 14:14:38 -040057 android:title="@string/zen_category_schedule"
Julia Reynoldsb5ea53a2020-01-08 12:27:08 -050058 settings:allowDividerAbove="true"
Julia Reynoldsb5ea53a2020-01-08 12:27:08 -050059 android:fragment="com.android.settings.notification.zen.ZenModeAutomationSettings"/>
60
61 <PreferenceCategory
62 android:key="zen_mode_settings_advanced"
Beverly509273c2020-03-18 14:14:38 -040063 settings:initialExpandedChildrenCount="0">
64
65 <!-- DND duration settings -->
66 <com.android.settings.notification.zen.ZenDurationDialogPreference
67 android:key="zen_mode_duration_settings"
68 android:title="@string/zen_category_duration"
69 android:widgetLayout="@null"/>
Julia Reynoldsb5ea53a2020-01-08 12:27:08 -050070
71 <!-- What to block (effects) -->
72 <Preference
73 android:key="zen_mode_block_effects_settings"
74 android:title="@string/zen_mode_restrict_notifications_title"
75 android:fragment="com.android.settings.notification.zen.ZenModeRestrictNotificationsSettings" />
Julia Reynoldsb5ea53a2020-01-08 12:27:08 -050076 </PreferenceCategory>
77
Beverly69d11b22018-10-26 16:01:17 -040078 <!-- Footer that shows if user is put into alarms only or total silence mode by an app -->
79 <com.android.settingslib.widget.FooterPreference/>
Beverlyb7b74222017-11-17 16:29:30 -050080
Jason Monk60a09ea2015-02-26 11:33:22 -050081</PreferenceScreen>