Beverly | b9f38af | 2018-12-11 16:19:33 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2018 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 | |
| 18 | <PreferenceScreen |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:key="zen_custom_rule_configuration_page" |
| 21 | xmlns:settings="http://schemas.android.com/apk/res-auto" |
| 22 | android:title="@string/zen_mode_settings_title"> |
| 23 | |
| 24 | <PreferenceCategory |
| 25 | android:key="zen_custom_rule_configuration_category"> |
| 26 | <!-- Calls --> |
| 27 | <Preference |
| 28 | android:key="zen_rule_calls_settings" |
| 29 | android:title="@string/zen_mode_calls" /> |
| 30 | |
| 31 | <!-- Messages --> |
| 32 | <Preference |
| 33 | android:key="zen_rule_messages_settings" |
| 34 | android:title="@string/zen_mode_messages" /> |
| 35 | |
| 36 | <!-- Alarms --> |
| 37 | <SwitchPreference |
| 38 | android:key="zen_rule_alarms" |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 39 | android:title="@string/zen_mode_alarms" |
| 40 | android:summary="@string/zen_mode_alarms_summary"/> |
Beverly | b9f38af | 2018-12-11 16:19:33 -0500 | [diff] [blame] | 41 | |
| 42 | <!-- Media --> |
| 43 | <SwitchPreference |
| 44 | android:key="zen_rule_media" |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 45 | android:title="@string/zen_mode_media" |
| 46 | android:summary="@string/zen_mode_media_summary"/> |
Beverly | b9f38af | 2018-12-11 16:19:33 -0500 | [diff] [blame] | 47 | |
| 48 | <!-- System --> |
| 49 | <SwitchPreference |
| 50 | android:key="zen_rule_system" |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 51 | android:title="@string/zen_mode_system" |
| 52 | android:summary="@string/zen_mode_system_summary"/> |
Beverly | b9f38af | 2018-12-11 16:19:33 -0500 | [diff] [blame] | 53 | |
| 54 | <!-- Reminders --> |
| 55 | <SwitchPreference |
| 56 | android:key="zen_rule_reminders" |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 57 | android:title="@string/zen_mode_reminders" |
| 58 | android:summary="@string/zen_mode_reminders_summary"/> |
Beverly | b9f38af | 2018-12-11 16:19:33 -0500 | [diff] [blame] | 59 | |
| 60 | <!-- Events --> |
| 61 | <SwitchPreference |
| 62 | android:key="zen_rule_events" |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 63 | android:title="@string/zen_mode_events" |
| 64 | android:summary="@string/zen_mode_events_summary"/> |
Beverly | b9f38af | 2018-12-11 16:19:33 -0500 | [diff] [blame] | 65 | </PreferenceCategory> |
| 66 | |
| 67 | <Preference |
| 68 | android:key="zen_rule_notifications" |
| 69 | android:title="@string/zen_mode_restrict_notifications_title" |
| 70 | settings:allowDividerAbove="true"/> |
| 71 | </PreferenceScreen> |