John Spurlock | cc819a6 | 2014-04-20 16:19:53 -0400 | [diff] [blame] | 1 | <?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 Fritze | 5c5a921 | 2018-03-21 13:46:11 -0700 | [diff] [blame] | 18 | <PreferenceScreen |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | xmlns:settings="http://schemas.android.com/apk/res-auto" |
Julia Reynolds | 3b29ff2 | 2020-02-13 11:17:04 -0500 | [diff] [blame] | 21 | android:title="@string/zen_mode_settings_title"> |
Julia Reynolds | 9aac3ce | 2018-03-15 09:34:03 -0400 | [diff] [blame] | 22 | |
Beverly | a58e52a | 2017-10-27 14:44:23 -0400 | [diff] [blame] | 23 | <!-- Turn on DND button --> |
tmfang | dce94bb | 2018-11-26 18:41:01 +0800 | [diff] [blame] | 24 | <com.android.settingslib.widget.LayoutPreference |
Fan Zhang | 7df6445 | 2019-04-12 15:31:25 -0700 | [diff] [blame] | 25 | android:key="zen_mode_toggle" |
| 26 | android:title="@string/zen_mode_settings_title" |
Beverly | 69d11b2 | 2018-10-26 16:01:17 -0400 | [diff] [blame] | 27 | android:selectable="false" |
| 28 | android:layout="@layout/zen_mode_settings_button" |
Fan Zhang | 7df6445 | 2019-04-12 15:31:25 -0700 | [diff] [blame] | 29 | settings:allowDividerBelow="true" |
| 30 | settings:keywords="@string/keywords_zen_mode_settings"/> |
Beverly | a58e52a | 2017-10-27 14:44:23 -0400 | [diff] [blame] | 31 | |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 32 | <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" |
Beverly | 509273c | 2020-03-18 14:14:38 -0400 | [diff] [blame] | 57 | android:title="@string/zen_category_schedule" |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 58 | settings:allowDividerAbove="true" |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 59 | android:fragment="com.android.settings.notification.zen.ZenModeAutomationSettings"/> |
| 60 | |
| 61 | <PreferenceCategory |
| 62 | android:key="zen_mode_settings_advanced" |
Beverly | 509273c | 2020-03-18 14:14:38 -0400 | [diff] [blame] | 63 | 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 Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 70 | |
| 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 Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 76 | </PreferenceCategory> |
| 77 | |
Beverly | 69d11b2 | 2018-10-26 16:01:17 -0400 | [diff] [blame] | 78 | <!-- Footer that shows if user is put into alarms only or total silence mode by an app --> |
| 79 | <com.android.settingslib.widget.FooterPreference/> |
Beverly | b7b7422 | 2017-11-17 16:29:30 -0500 | [diff] [blame] | 80 | |
Jason Monk | 60a09ea | 2015-02-26 11:33:22 -0500 | [diff] [blame] | 81 | </PreferenceScreen> |