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 <!-- Enable CMAS Extreme Threat alerts --> 26 <SwitchPreference android:defaultValue="true" 27 android:key="enable_cmas_extreme_threat_alerts" 28 android:title="@string/enable_cmas_extreme_threat_alerts_title" /> 29 30 <!-- Enable CMAS Severe Threat alerts --> 31 <SwitchPreference android:defaultValue="true" 32 android:key="enable_cmas_severe_threat_alerts" 33 android:title="@string/enable_cmas_severe_threat_alerts_title" /> 34 35 <!-- Enable CMAS AMBER alerts --> 36 <SwitchPreference android:defaultValue="true" 37 android:key="enable_cmas_amber_alerts" 38 android:title="@string/enable_cmas_amber_alerts_title" /> 39 40 <!-- Enable public safety messages --> 41 <SwitchPreference android:defaultValue="@bool/public_safety_messages_enabled_default" 42 android:key="enable_public_safety_messages" 43 android:summary="@string/enable_public_safety_messages_summary" 44 android:title="@string/enable_public_safety_messages_title" /> 45 46 <!-- Enable public safety full screen messages --> 47 <SwitchPreference android:defaultValue="@bool/public_safety_messages_full_screen_enabled_default" 48 android:key="enable_public_safety_messages_full_screen" 49 android:summary="@string/enable_full_screen_public_safety_messages_summary" 50 android:title="@string/enable_full_screen_public_safety_messages_title" /> 51 52 <com.android.settingslib.widget.MainSwitchPreference android:defaultValue="true" 53 android:key="enable_emergency_alerts" 54 android:title="@string/enable_alerts_master_toggle_title" /> 55 56 <ListPreference android:key="alert_reminder_interval" 57 android:title="@string/alert_reminder_interval_title" 58 android:entries="@array/alert_reminder_interval_entries" 59 android:entryValues="@array/alert_reminder_interval_values" 60 android:defaultValue="@string/alert_reminder_interval_in_min_default" 61 android:dialogTitle="@string/alert_reminder_interval_title" /> 62 63 <SwitchPreference android:defaultValue="true" 64 android:key="enable_alert_vibrate" 65 android:title="@string/enable_alert_vibrate_title" /> 66 67 <SwitchPreference android:defaultValue="true" 68 android:key="enable_alert_speech" 69 android:title="@string/enable_alert_speech_title" /> 70 71 <!-- Enable receive monthly test --> 72 <SwitchPreference android:defaultValue="false" 73 android:key="enable_test_alerts" 74 android:title="@string/enable_cmas_test_alerts_title" /> 75 76 <!-- Enable state/local test alerts --> 77 <SwitchPreference android:defaultValue="true" 78 android:key="enable_state_local_test_alerts" 79 android:title="@string/enable_state_local_test_alerts_title" /> 80 81 <!-- Default value is true for Brazil and India. This preference is ignored and hidden 82 unless the boolean "config_showAreaUpdateInfoSettings" is set to true in the global resource. --> 83 <SwitchPreference android:defaultValue="true" 84 android:key="enable_area_update_info_alerts" 85 android:summary="@string/enable_area_update_info_alerts_summary" 86 android:title="@string/enable_area_update_info_alerts_title" /> 87 88 <Preference android:key="emergency_alert_history" 89 android:title="@string/emergency_alert_history_title" /> 90 91 <!-- Show additional language on/off switch in settings --> 92 <SwitchPreference android:defaultValue="false" 93 android:key="receive_cmas_in_second_language" 94 android:title="@string/receive_cmas_in_second_language_title" /> 95</PreferenceScreen> 96