• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
39            android:title="@string/zen_mode_alarms"
40            android:summary="@string/zen_mode_alarms_summary"/>
41
42        <!-- Media -->
43        <SwitchPreference
44            android:key="zen_rule_media"
45            android:title="@string/zen_mode_media"
46            android:summary="@string/zen_mode_media_summary"/>
47
48        <!-- System -->
49        <SwitchPreference
50            android:key="zen_rule_system"
51            android:title="@string/zen_mode_system"
52            android:summary="@string/zen_mode_system_summary"/>
53
54        <!-- Reminders -->
55        <SwitchPreference
56            android:key="zen_rule_reminders"
57            android:title="@string/zen_mode_reminders"
58            android:summary="@string/zen_mode_reminders_summary"/>
59
60        <!-- Events -->
61        <SwitchPreference
62            android:key="zen_rule_events"
63            android:title="@string/zen_mode_events"
64            android:summary="@string/zen_mode_events_summary"/>
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>
72