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 android:title="@string/emergency_alert_settings_title_watches" 23 android:key="category_alert_preferences"> 24 25 <SwitchPreference 26 android:defaultValue="@bool/master_toggle_enabled_default" 27 android:key="enable_alerts_master_toggle" 28 android:summary="@string/enable_alerts_master_toggle_summary" 29 android:title="@string/enable_alerts_master_toggle_title" /> 30 31 32 <SwitchPreference android:defaultValue="@bool/emergency_alerts_enabled_default" 33 android:key="enable_emergency_alerts" 34 android:title="@string/enable_emergency_alerts_message_title" /> 35 36 <!-- Enable CMAS AMBER alerts --> 37 <SwitchPreference android:defaultValue="@bool/amber_alerts_enabled_default" 38 android:key="enable_cmas_amber_alerts" 39 android:title="@string/enable_cmas_amber_alerts_title" /> 40 41 <!-- Enable CMAS Extreme Threat alerts --> 42 <SwitchPreference android:defaultValue="@bool/extreme_threat_alerts_enabled_default" 43 android:key="enable_cmas_extreme_threat_alerts" 44 android:title="@string/enable_cmas_extreme_threat_alerts_title" /> 45 46 <!-- Enable CMAS Severe Threat alerts --> 47 <SwitchPreference android:defaultValue="@bool/severe_threat_alerts_enabled_default" 48 android:key="enable_cmas_severe_threat_alerts" 49 android:title="@string/enable_cmas_severe_threat_alerts_title" /> 50 51 <SwitchPreference android:defaultValue="true" 52 android:selectable="false" 53 android:enabled="false" 54 android:key="enable_cmas_presidential_alerts" 55 android:title="@string/enable_cmas_presidential_alerts_title" /> 56 57 <!-- Enable public safety messages --> 58 <SwitchPreference android:defaultValue="@bool/public_safety_messages_enabled_default" 59 android:key="enable_public_safety_messages" 60 android:summary="@string/enable_public_safety_messages_summary" 61 android:title="@string/enable_public_safety_messages_title" /> 62 63 <!-- Enable public safety full screen messages --> 64 <SwitchPreference android:defaultValue="@bool/public_safety_messages_full_screen_enabled_default" 65 android:key="enable_public_safety_messages_full_screen" 66 android:summary="@string/enable_full_screen_public_safety_messages_summary" 67 android:title="@string/enable_full_screen_public_safety_messages_title" /> 68 69 <!-- Enable receive monthly test --> 70 <SwitchPreference android:defaultValue="false" 71 android:key="enable_test_alerts" 72 android:title="@string/enable_cmas_test_alerts_title" /> 73 74 <!-- Enable exercise test alerts --> 75 <SwitchPreference android:defaultValue="@bool/test_exercise_alerts_enabled_default" 76 android:key="enable_exercise_alerts" 77 android:summary="@string/enable_exercise_test_alerts_summary" 78 android:title="@string/enable_exercise_test_alerts_title" /> 79 80 <!-- Enable operator defined test alerts --> 81 <SwitchPreference android:defaultValue="@bool/test_operator_defined_alerts_enabled_default" 82 android:key="enable_operator_defined_alerts" 83 android:summary="@string/enable_operator_defined_test_alerts_summary" 84 android:title="@string/enable_operator_defined_test_alerts_title" /> 85 86 <!-- Enable state/local test alerts --> 87 <SwitchPreference android:defaultValue="@bool/state_local_test_alerts_enabled_default" 88 android:key="enable_state_local_test_alerts" 89 android:title="@string/enable_state_local_test_alerts_title" /> 90 91 <!-- Default value is true for Brazil and India. This preference is ignored and hidden 92 unless the boolean "config_showAreaUpdateInfoSettings" is set to true in the global resource. --> 93 <SwitchPreference android:defaultValue="true" 94 android:key="enable_area_update_info_alerts" 95 android:summary="@string/enable_area_update_info_alerts_summary" 96 android:title="@string/enable_area_update_info_alerts_title" /> 97 98 <Preference android:key="emergency_alert_history" 99 android:title="@string/emergency_alert_history_title" /> 100 101 <SwitchPreference android:defaultValue="true" 102 android:key="enable_alert_vibrate" 103 android:title="@string/enable_alert_vibrate_title" /> 104 105 <!-- Show additional language on/off switch in settings --> 106 <SwitchPreference android:defaultValue="false" 107 android:key="receive_cmas_in_second_language" 108 android:title="@string/receive_cmas_in_second_language_title" /> 109 110 <SwitchPreference android:defaultValue="@bool/override_dnd_default" 111 android:key="override_dnd" 112 android:summary="@string/override_dnd_summary" 113 android:title="@string/override_dnd_title" /> 114 115 <SwitchPreference android:defaultValue="true" 116 android:key="enable_alert_speech" 117 android:title="@string/enable_alert_speech_title" /> 118 119 <ListPreference android:key="alert_reminder_interval" 120 android:title="@string/alert_reminder_interval_title" 121 android:entries="@array/alert_reminder_interval_entries" 122 android:entryValues="@array/alert_reminder_interval_values" 123 android:defaultValue="@string/alert_reminder_interval_in_min_default" 124 android:dialogTitle="@string/alert_reminder_interval_title" 125 android:negativeButtonText="@null" /> 126 127 <SwitchPreference android:defaultValue="true" 128 android:key="show_cmas_opt_out_dialog" 129 android:summary="@string/show_cmas_opt_out_summary" 130 android:title="@string/show_cmas_opt_out_title" /> 131 </PreferenceScreen> 132