- Automatic zen rules have their own page like in N - Minor string changes to page and add rule dialog - Zen mode visual effects was moved into behavior settings Bug: 63077372 Test: $ make SettingsUnitTests -j40 $ adb install -r ${OUT}/data/app/SettingsUnitTests/SettingsUnitTests.apk $ adb shell am instrument -w com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner Change-Id: I9635f8f7969b76d036bc06ec44705815e540777a
83 lines
2.8 KiB
XML
83 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2017 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"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
|
android:key="zen_mode_behavior_settings_page"
|
|
android:title="@string/zen_mode_behavior_settings_title"
|
|
settings:initialExpandedChildrenCount="7">
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/zen_mode_behavior_allow_title"
|
|
android:key="zen_mode_behavior_allow_preferences">
|
|
|
|
<!-- Alarms -->
|
|
<SwitchPreference
|
|
android:key="zen_mode_alarms"
|
|
android:title="@string/zen_mode_alarms"/>
|
|
|
|
<!-- Media -->
|
|
<SwitchPreference
|
|
android:key="zen_mode_media"
|
|
android:title="@string/zen_mode_media_system_other"/>
|
|
|
|
<!-- Reminders -->
|
|
<SwitchPreference
|
|
android:key="zen_mode_reminders"
|
|
android:title="@string/zen_mode_reminders"/>
|
|
|
|
<!-- Events -->
|
|
<SwitchPreference
|
|
android:key="zen_mode_events"
|
|
android:title="@string/zen_mode_events"/>
|
|
|
|
<!-- Messages -->
|
|
<DropDownPreference
|
|
android:key="zen_mode_messages"
|
|
android:title="@string/zen_mode_messages"
|
|
android:summary="%s" />
|
|
|
|
<!-- Calls -->
|
|
<DropDownPreference
|
|
android:key="zen_mode_calls"
|
|
android:title="@string/zen_mode_calls"
|
|
android:summary="%s" />
|
|
|
|
<!-- Repeat callers -->
|
|
<SwitchPreference
|
|
android:key="zen_mode_repeat_callers"
|
|
android:title="@string/zen_mode_repeat_callers"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/zen_mode_visual_signals_settings_subtitle"
|
|
android:key="zen_mode_visual_signals_preferences">
|
|
|
|
<SwitchPreference android:key="zen_mode_screen_on"
|
|
android:title="@string/zen_mode_screen_on"
|
|
android:summary="@string/zen_mode_screen_on_summary" />
|
|
|
|
<SwitchPreference android:key="zen_mode_screen_off"
|
|
android:title="@string/zen_mode_screen_off"
|
|
android:summary="@string/zen_mode_screen_off_summary" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|