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

Commit aa8c7a7d authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Fix editable roaming mode query bug

am: d0423bf7

Change-Id: I066c89d126af5015bc9b5245affcc87bdd7706b6
parents a5a7ed81 d0423bf7
Loading
Loading
Loading
Loading
+7 −11
Original line number Diff line number Diff line
@@ -994,17 +994,13 @@ public class ImsManager {
            }
            if (DBG) log("getWfcMode - setting=" + setting);
        } else {
            // The WFC roaming mode is not editable, return the default setting in the
            // CarrierConfig, not the user set value.
            if (!getBooleanCarrierConfig(CarrierConfigManager.KEY_EDITABLE_WFC_MODE_BOOL)) {
                setting = getIntCarrierConfig(
                        CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT);

            } else {
            // The WFC roaming mode is set in the Settings UI to be the same as the WFC mode if the
            // roaming mode is set to not "editable" (see
            // CarrierConfigManager.KEY_EDITABLE_WFC_ROAMING_MODE_BOOL for explanation), so can't
            // override those settings here by setting the WFC roaming mode to default, like above.
            setting = getSettingFromSubscriptionManager(
                    SubscriptionManager.WFC_IMS_ROAMING_MODE,
                    CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT);
            }
            if (DBG) log("getWfcMode (roaming) - setting=" + setting);
        }
        return setting;