Display no data notification in certain scenarios

For some carriers, display no data notification when
setup data permanently failed (i.e. retry will not hapen)

Bug: 169648447
Test: Manual
Merged-In: Ica20169db3c9230172d2cae80a9e6ba3486bfa42
Change-Id: Ica20169db3c9230172d2cae80a9e6ba3486bfa42
(cherry picked from commit 5badb094f5)
This commit is contained in:
Jack Yu
2021-03-29 11:07:55 -07:00
parent 222b1e4ad7
commit 7b8ac258b5

View File

@@ -4351,6 +4351,15 @@ public class CarrierConfigManager {
*/
public static final String KEY_HIDE_ENABLE_2G = "hide_enable_2g_bool";
/**
* Determine whether or not to display no data notification when data setup is permanently
* failed.
*
* @hide
*/
public static final String KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL =
"display_no_data_notification_on_permanent_failure_bool";
/** The default value for every variable. */
private final static PersistableBundle sDefaults;
@@ -4916,6 +4925,7 @@ public class CarrierConfigManager {
new String[]{"ia", "default", "ims", "mms", "dun", "emergency"});
sDefaults.putBoolean(KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_ENABLE_2G, false);
sDefaults.putBoolean(KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL, false);
}
/**