1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright (C) 2011 The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18--> 19<PreferenceScreen 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:app="http://schemas.android.com/apk/res-auto"> 22 23 <Preference android:key="alerts_header" 24 android:summary="@string/alerts_header_summary" 25 android:icon="@drawable/ic_info_outline_24dp" 26 android:selectable="false" /> 27 28 <com.android.settingslib.widget.TopIntroPreference 29 android:key="alert_prefs_top_intro"/> 30 31 <com.android.settingslib.widget.MainSwitchPreference android:defaultValue="@bool/master_toggle_enabled_default" 32 android:key="enable_alerts_master_toggle" 33 android:summary="@string/enable_alerts_master_toggle_summary" 34 android:title="@string/enable_alerts_master_toggle_title" /> 35 36 <!-- Settings to enable / disable emergency alerts --> 37 <PreferenceCategory android:title="@string/emergency_alerts_title" 38 android:key="category_emergency_alerts"> 39 40 <!-- Enable emergency alerts --> 41 <SwitchPreference android:defaultValue="@bool/emergency_alerts_enabled_default" 42 android:key="enable_emergency_alerts" 43 android:summary="@string/enable_emergency_alerts_message_summary" 44 android:title="@string/enable_emergency_alerts_message_title" /> 45 46 <!-- Show checkbox for Presidential alerts in settings --> 47 <SwitchPreference android:defaultValue="true" 48 android:enabled="false" 49 android:key="enable_cmas_presidential_alerts" 50 android:summary="@string/enable_cmas_presidential_alerts_summary" 51 android:title="@string/enable_cmas_presidential_alerts_title"/> 52 53 <!-- Enable CMAS Extreme Threat alerts --> 54 <SwitchPreference android:defaultValue="@bool/extreme_threat_alerts_enabled_default" 55 android:key="enable_cmas_extreme_threat_alerts" 56 android:summary="@string/enable_cmas_extreme_threat_alerts_summary" 57 android:title="@string/enable_cmas_extreme_threat_alerts_title" /> 58 59 <!-- Enable CMAS Severe Threat alerts --> 60 <SwitchPreference android:defaultValue="@bool/severe_threat_alerts_enabled_default" 61 android:key="enable_cmas_severe_threat_alerts" 62 android:summary="@string/enable_cmas_severe_threat_alerts_summary" 63 android:title="@string/enable_cmas_severe_threat_alerts_title" /> 64 65 <!-- Enable CMAS AMBER alerts --> 66 <SwitchPreference android:defaultValue="@bool/amber_alerts_enabled_default" 67 android:key="enable_cmas_amber_alerts" 68 android:summary="@string/enable_cmas_amber_alerts_summary" 69 android:title="@string/enable_cmas_amber_alerts_title" /> 70 71 <!-- Enable public safety messages --> 72 <SwitchPreference android:defaultValue="@bool/public_safety_messages_enabled_default" 73 android:key="enable_public_safety_messages" 74 android:summary="@string/enable_public_safety_messages_summary" 75 android:title="@string/enable_public_safety_messages_title" /> 76 77 <!-- Enable public safety full screen messages --> 78 <SwitchPreference android:defaultValue="@bool/public_safety_messages_full_screen_enabled_default" 79 android:key="enable_public_safety_messages_full_screen" 80 android:summary="@string/enable_full_screen_public_safety_messages_summary" 81 android:title="@string/enable_full_screen_public_safety_messages_title" /> 82 83 <!-- Enable state/local test alerts --> 84 <SwitchPreference android:defaultValue="@bool/state_local_test_alerts_enabled_default" 85 android:key="enable_state_local_test_alerts" 86 android:summary="@string/enable_state_local_test_alerts_summary" 87 android:title="@string/enable_state_local_test_alerts_title" /> 88 89 <!-- Enable other test alerts --> 90 <SwitchPreference android:defaultValue="@bool/test_alerts_enabled_default" 91 android:key="enable_test_alerts" 92 android:summary="@string/enable_cmas_test_alerts_summary" 93 android:title="@string/enable_cmas_test_alerts_title" /> 94 95 <!-- Enable exercise test alerts --> 96 <SwitchPreference android:defaultValue="@bool/test_exercise_alerts_enabled_default" 97 android:key="enable_exercise_alerts" 98 android:summary="@string/enable_exercise_test_alerts_summary" 99 android:title="@string/enable_exercise_test_alerts_title" /> 100 101 <!-- Enable operator defined test alerts --> 102 <SwitchPreference android:defaultValue="@bool/test_operator_defined_alerts_enabled_default" 103 android:key="enable_operator_defined_alerts" 104 android:summary="@string/enable_operator_defined_test_alerts_summary" 105 android:title="@string/enable_operator_defined_test_alerts_title" /> 106 107 <!-- Default value is true for Brazil and India. This preference is ignored and hidden 108 unless the boolean "config_showAreaUpdateInfoSettings" is set to true in the global resource. --> 109 <SwitchPreference android:defaultValue="@bool/area_update_info_alerts_enabled_default" 110 android:key="enable_area_update_info_alerts" 111 android:summary="@string/enable_area_update_info_alerts_summary" 112 android:title="@string/enable_area_update_info_alerts_title" /> 113 114 <Preference android:key="emergency_alert_history" 115 android:title="@string/emergency_alert_history_title" /> 116 117 </PreferenceCategory> 118 119 120 <!-- Settings of how alerts are shown to user. --> 121 <PreferenceCategory android:title="@string/alert_preferences_title" 122 android:key="category_alert_preferences"> 123 124 <SwitchPreference android:defaultValue="true" 125 android:key="enable_alert_vibrate" 126 android:summary="@string/enable_alert_vibrate_summary" 127 android:title="@string/enable_alert_vibrate_title" /> 128 129 <ListPreference android:key="alert_reminder_interval" 130 android:title="@string/alert_reminder_interval_title" 131 android:entries="@array/alert_reminder_interval_entries" 132 android:entryValues="@array/alert_reminder_interval_values" 133 android:defaultValue="@string/alert_reminder_interval_in_min_default" 134 android:dialogTitle="@string/alert_reminder_dialog_title" /> 135 136 <!-- Show additional language on/off switch in settings --> 137 <SwitchPreference android:defaultValue="false" 138 android:key="receive_cmas_in_second_language" 139 android:summary="@string/receive_cmas_in_second_language_summary" 140 android:title="@string/receive_cmas_in_second_language_title" /> 141 142 <SwitchPreference android:defaultValue="@bool/override_dnd_default" 143 android:key="override_dnd" 144 android:summary="@string/override_dnd_summary" 145 android:title="@string/override_dnd_title" /> 146 147 <SwitchPreference android:defaultValue="@bool/enable_alert_speech_default" 148 android:key="enable_alert_speech" 149 android:summary="@string/enable_alert_speech_summary" 150 android:title="@string/enable_alert_speech_title" /> 151 </PreferenceCategory> 152 153</PreferenceScreen> 154