87 lines
3.1 KiB
XML
87 lines
3.1 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-auto"
|
|
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"
|
|
android:summary="@string/zen_mode_media_system_other_secondary_text"/>
|
|
|
|
<!-- 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 -->
|
|
<ListPreference
|
|
android:key="zen_mode_messages"
|
|
android:title="@string/zen_mode_messages"
|
|
android:entries="@array/zen_mode_contacts_entries"
|
|
android:entryValues="@array/zen_mode_contacts_values"/>
|
|
|
|
<!-- Calls -->
|
|
<ListPreference
|
|
android:key="zen_mode_calls"
|
|
android:title="@string/zen_mode_calls"
|
|
android:entries="@array/zen_mode_contacts_entries"
|
|
android:entryValues="@array/zen_mode_contacts_values"/>
|
|
|
|
<!-- 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>
|
|
|
|
<com.android.settingslib.widget.FooterPreference />
|
|
|
|
</PreferenceScreen>
|