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

Commit 58c632ae authored by Jordan Liu's avatar Jordan Liu Committed by Malcolm Chen
Browse files

Add carrier config for data roaming notification

This config, when enabled, shows the user a notification when the device
switches to data roaming and the user has data roaming on.

Bug: 133358875
Test: manual
Change-Id: Ia091575ff0fa7e02f0c6a98bae0e66ef73beff81
Merged-In: Ia091575ff0fa7e02f0c6a98bae0e66ef73beff81
parent 27c3d13f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2377,6 +2377,14 @@ public class CarrierConfigManager {
    public static final String KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL =
            "check_pricing_with_carrier_data_roaming_bool";

     /**
      * Determines whether we should show a notification when the phone established a data
      * connection in roaming network, to warn users about possible roaming charges.
      * @hide
      */
    public static final String KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL =
            "show_data_connected_roaming_notification";

    /**
     * A list of 4 LTE RSRP thresholds above which a signal level is considered POOR,
     * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
@@ -3183,6 +3191,7 @@ public class CarrierConfigManager {
        sDefaults.putString(KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING, "");
        sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false);
        sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false);
        sDefaults.putBoolean(KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL, false);
        sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY,
                new int[] {
                        -128, /* SIGNAL_STRENGTH_POOR */