diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/values/strings.xml | 12 | ||||
-rw-r--r-- | res/xml/preferences.xml | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index e3714bab..0a9b3870 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -213,6 +213,18 @@ <!-- Non-emergency broadcast notification title for multiple unread alerts. --> <string name="notification_multiple_title">New alerts</string> + <!-- Show CMAS opt-out dialog on first non-Presidential alert. [CHAR LIMIT=100] --> + <string name="show_cmas_opt_out_summary">Show an opt-out dialog after displaying the first CMAS alert (other than Presidential Alert).</string> + <!-- Show CMAS opt-out dialog on first non-Presidential alert. [CHAR LIMIT=40] --> + <string name="show_cmas_opt_out_title">Show opt-out dialog</string> + + <!-- CMAS opt-out dialog message. [CHAR LIMIT=160] --> + <string name="cmas_opt_out_dialog_text">You are currently receiving Emergency Alerts. Would you like to continue receiving Emergency Alerts?</string> + <!-- Text for positive button in CMAS opt-out dialog. [CHAR LIMIT=25] --> + <string name="cmas_opt_out_button_yes">Yes</string> + <!-- Text for negative button in CMAS opt-out dialog. [CHAR LIMIT=25] --> + <string name="cmas_opt_out_button_no">No</string> + <!-- Entries listed in the ListPreference for allowed alert durations. [CHAR LIMIT=30] --> <string-array name="alert_sound_duration_entries"> <item>2 seconds</item> diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 5c29f08e..340830a8 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -96,6 +96,11 @@ android:summary="@string/enable_cmas_test_alerts_summary" android:title="@string/enable_cmas_test_alerts_title" /> + <CheckBoxPreference android:defaultValue="true" + android:key="show_cmas_opt_out_dialog" + android:summary="@string/show_cmas_opt_out_summary" + android:title="@string/show_cmas_opt_out_title" /> + </PreferenceCategory> </PreferenceScreen> |