diff options
author | Jack Yu <jackyu@google.com> | 2015-09-14 16:18:59 -0700 |
---|---|---|
committer | Jack Yu <jackyu@google.com> | 2015-09-14 16:56:32 -0700 |
commit | 6af6c346ee0572ec78bf4e44487b28ad92560f9f (patch) | |
tree | c15d4e896be655f8cad64478db83980ed0d171dd /telephony | |
parent | 6b04e3a6ea042be0e012f7501fadb461b3d772a7 (diff) | |
download | frameworks_base-6af6c346ee0572ec78bf4e44487b28ad92560f9f.zip frameworks_base-6af6c346ee0572ec78bf4e44487b28ad92560f9f.tar.gz frameworks_base-6af6c346ee0572ec78bf4e44487b28ad92560f9f.tar.bz2 |
Added a carrier config key for emergency messages on/off option always showing.
Adding a carrier config key that allows carriers to show "Turn on Notifications"
checkbox in Settings->More->Emergency broadcasts setting menu. If this key
exists and is set to true, this checkbox will always show up regardless of
developer options turned on or not.
bug:23886750
Change-Id: I54dec5830653a0e27d7ee652effe572231f1e3bb
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index ef730fc..aa4da4b 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -319,6 +319,14 @@ public class CarrierConfigManager { public static final String KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL = "carrier_force_disable_etws_cmas_test_bool"; + /** + * The default flag specifying whether "Turn on Notifications" option will be always shown in + * Settings->More->Emergency broadcasts menu regardless developer options is turned on or not. + * @hide + */ + public static final String KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL = + "always_show_emergency_alert_onoff_bool"; + /* The following 3 fields are related to carrier visual voicemail. */ /** @@ -516,6 +524,7 @@ public class CarrierConfigManager { sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, ""); sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, ""); sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false); + sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false); sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null); sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null); |