Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b8ac258 authored by Jack Yu's avatar Jack Yu
Browse files

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 5badb094)
parent 222b1e4a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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);
    }

    /**