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

Commit 516fb162 authored by Meng Wang's avatar Meng Wang Committed by android-build-merger
Browse files

setWfcSetting: set WFC mode w.r.t. roaming state

am: 2c2f0937

Change-Id: I500571092515c231d8715f0752ad3383058fba00
parents 134c4159 2c2f0937
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -872,7 +872,9 @@ public class ImsManager {
        SubscriptionManager.setSubscriptionProperty(getSubId(),
                SubscriptionManager.WFC_IMS_ENABLED, booleanToPropertyString(enabled));

        setWfcNonPersistent(enabled, getWfcMode());
        TelephonyManager tm = (TelephonyManager)
                mContext.getSystemService(Context.TELEPHONY_SERVICE);
        setWfcNonPersistent(enabled, getWfcMode(tm.isNetworkRoaming(getSubId())));
    }

    /**