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

Commit d5853680 authored by Wenting Xiong's avatar Wenting Xiong Committed by Jordan Liu
Browse files

Add carrier config option to show call barring UI in CallSettings

Some operators require to add Call Barring setting UI to CallSetting,
so add a new CarrierConfig value to customize this.

Bug: 30845125
Test: Manual
Change-Id: I5d80508afd8216f04f443c5a9e0dd83d5247788f
parent 50cfaa40
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -61,6 +61,14 @@ public class CarrierConfigManager {
    public static final String
            KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool";

   /**
    * Boolean indicating if the "Call barring" item is visible in the Call Settings menu.
    * true means visible. false means gone.
    * @hide
    */
    public static final String KEY_CALL_BARRING_VISIBILITY_BOOL =
            "call_barring_visibility_bool";

    /**
     * Flag indicating whether the Phone app should ignore EVENT_SIM_NETWORK_LOCKED
     * events from the Sim.
@@ -1794,6 +1802,7 @@ public class CarrierConfigManager {
        sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false);

        sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false);
        sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false);
        sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false);
        sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false);
        sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true);