From 93f78f5d81f5c15e628b7d5e92e1ba6132cf4abe Mon Sep 17 00:00:00 2001 From: Seongho Kim Date: Tue, 13 Nov 2018 15:08:34 +0900 Subject: [PATCH] Add carrier's option to cancel CS reject cause notification Some carrier still want to cancel CS reject notification automatically when it gets service. So, we need a way to set carrier's option for it. Bug: 79889307 Test: Manual Change-Id: If4c696e8116094d0cb555fe87c92243af1f34cec --- .../android/telephony/CarrierConfigManager.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) mode change 100644 => 100755 telephony/java/android/telephony/CarrierConfigManager.java diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java old mode 100644 new mode 100755 index 5262cf8ce91cc..d79a168975e7b --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -2653,6 +2653,18 @@ public class CarrierConfigManager { */ public static final String KEY_USE_USIM_BOOL = "use_usim_bool"; + /** + * Determines whether the carrier wants to cancel the cs reject notification automatically + * when the voice registration state changes. + * If true, the notification will be automatically removed + * when the voice registration state changes. + * If false, the notification will persist until the user dismisses it, + * the SIM is removed, or the device is rebooted. + * @hide + */ + public static final String KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION = + "carrier_auto_cancel_cs_notification"; + /** The default value for every variable. */ private final static PersistableBundle sDefaults; @@ -3039,6 +3051,7 @@ public class CarrierConfigManager { }); sDefaults.putStringArray(KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY, new String[0]); sDefaults.putBoolean(KEY_USE_USIM_BOOL, false); + sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, false); } /**