OSDN Git Service

Adding zen duration preference
[android-x86/packages-apps-Settings.git] / res / xml / zen_mode_settings.xml
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
18 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
19     android:key="zen_mode_settings"
20     android:title="@string/zen_mode_settings_title">
21
22     <!-- What to block (effects) -->
23     <Preference
24         android:key="zen_mode_block_effects_settings"
25         android:title="@string/zen_mode_what_to_block_title"
26         android:fragment="com.android.settings.notification.ZenModeBlockedEffectsSettings" />
27
28     <!-- Behavior settings (exceptions) -->
29     <Preference
30             android:key="zen_mode_behavior_settings"
31             android:title="@string/zen_mode_behavior_settings_title"
32             android:fragment="com.android.settings.notification.ZenModeBehaviorSettings" />
33
34     <!-- DND duration settings -->
35     <Preference
36         android:key="zen_mode_duration_settings"
37         android:title="@string/zen_mode_duration_settings_title" />
38
39     <!-- Automatic rules -->
40     <Preference
41         android:key="zen_mode_automation_settings"
42         android:title="@string/zen_mode_automation_settings_title"
43         android:fragment="com.android.settings.notification.ZenModeAutomationSettings" />
44
45     <!-- Turn on DND button -->
46     <!-- Layout preference doesn't obey allowDividerAbove, so put it in a PreferenceCategory -->
47     <PreferenceCategory
48         android:key="zen_mode_settings_button_category">
49         <com.android.settings.applications.LayoutPreference
50             android:key="zen_mode_settings_button_container"
51             android:selectable="false"
52             android:layout="@layout/zen_mode_settings_button" />
53     </PreferenceCategory>
54
55     <PreferenceCategory
56         android:key="zen_mode_footer_container">
57         <com.android.settingslib.widget.FooterPreference />
58     </PreferenceCategory>
59
60 </PreferenceScreen>