summaryrefslogtreecommitdiffstats
path: root/res/xml/zen_mode_automation_settings.xml
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2015-04-03 15:11:33 -0400
committerJohn Spurlock <jspurlock@google.com>2015-04-03 16:27:45 -0400
commitd8b36835707edbeeb9c9fbc30eba855a0b6231c6 (patch)
tree8e5d7ca7123f3d43df67a41222c2b5c48c7ca6c9 /res/xml/zen_mode_automation_settings.xml
parent851532f37fa01930300bdbc951dcc311d066de02 (diff)
downloadpackages_apps_Settings-d8b36835707edbeeb9c9fbc30eba855a0b6231c6.zip
packages_apps_Settings-d8b36835707edbeeb9c9fbc30eba855a0b6231c6.tar.gz
packages_apps_Settings-d8b36835707edbeeb9c9fbc30eba855a0b6231c6.tar.bz2
Settings: Move downtime to new automation sub-settings page.
Bug: 20064962 Change-Id: I6238439bbd679c143fc986743a65ed64057f2755
Diffstat (limited to 'res/xml/zen_mode_automation_settings.xml')
-rw-r--r--res/xml/zen_mode_automation_settings.xml61
1 files changed, 61 insertions, 0 deletions
diff --git a/res/xml/zen_mode_automation_settings.xml b/res/xml/zen_mode_automation_settings.xml
new file mode 100644
index 0000000..3098630
--- /dev/null
+++ b/res/xml/zen_mode_automation_settings.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ android:key="zen_mode_settings"
+ android:title="@string/zen_mode_automation_settings_title" >
+
+ <!-- Downtime -->
+ <PreferenceCategory
+ android:key="downtime"
+ android:title="@string/zen_mode_downtime_category" >
+
+ <!-- Days -->
+ <Preference
+ android:key="days"
+ android:title="@string/zen_mode_downtime_days"
+ android:persistent="false" />
+
+ <!-- Start time/End time added and removed here! :-) -->
+
+ <!-- Interruptions allowed -->
+ <com.android.settings.DropDownPreference
+ android:key="downtime_mode"
+ android:title="@string/zen_mode_downtime_mode_title"
+ android:order="100"
+ android:persistent="false" />
+
+ </PreferenceCategory>
+
+ <PreferenceCategory
+ android:key="automation"
+ android:title="@string/zen_mode_automation_category" >
+
+ <Preference
+ android:key="entry"
+ android:title="@string/zen_mode_entry_conditions_title"
+ android:persistent="false" />
+
+ <Preference
+ android:key="manage_condition_providers"
+ android:title="@string/manage_condition_providers"
+ android:persistent="false"
+ android:fragment="com.android.settings.notification.ConditionProviderSettings" />
+
+ </PreferenceCategory>
+
+</PreferenceScreen>