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:key="watch_alert_reminder" 64 android:title="@string/alert_reminder_interval_title" /> 65 66 <SwitchPreference android:defaultValue="true" 67 android:key="enable_alert_vibrate" 68 android:title="@string/enable_alert_vibrate_title" /> 69 70 <SwitchPreference android:defaultValue="true" 71 android:key="enable_alert_speech" 72 android:title="@string/enable_alert_speech_title" /> 73 74 <!-- Enable receive monthly test --> 75 <SwitchPreference android:defaultValue="false" 76 android:key="enable_test_alerts" 77 android:title="@string/enable_cmas_test_alerts_title" /> 78 79 <!-- Enable state/local test alerts --> 80 <SwitchPreference android:defaultValue="true" 81 android:key="enable_state_local_test_alerts" 82 android:title="@string/enable_state_local_test_alerts_title" /> 83 84 <!-- Default value is true for Brazil and India. This preference is ignored and hidden 85 unless the boolean "config_showAreaUpdateInfoSettings" is set to true in the global resource. --> 86 <SwitchPreference android:defaultValue="true" 87 android:key="enable_area_update_info_alerts" 88 android:summary="@string/enable_area_update_info_alerts_summary" 89 android:title="@string/enable_area_update_info_alerts_title" /> 90 91 <Preference android:key="emergency_alert_history" 92 android:title="@string/emergency_alert_history_title" /> 93 94 <!-- Show additional language on/off switch in settings --> 95 <SwitchPreference android:defaultValue="false" 96 android:key="receive_cmas_in_second_language" 97 android:title="@string/receive_cmas_in_second_language_title" /> 98</PreferenceScreen> 99