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

Commit 531a8b68 authored by Meng Wang's avatar Meng Wang
Browse files

ImsManager: updateWfcFeatureAndProvisionedValues use roaming state

In updateImsServiceConfig, WFC should be updated according to roaming
state. Roaming-aware version of getWfcMode() should be used.

Bug: 31972897
Change-Id: Ic4d6a516373d6ccdadad4fd43ed9e092d8ef72a6
parent 37477019
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -820,9 +820,10 @@ public class ImsManager {
     * @throws ImsException
     */
    private boolean updateWfcFeatureAndProvisionedValues() throws ImsException {
        boolean isNetworkRoaming = TelephonyManager.getDefault().isNetworkRoaming();
        boolean available = isWfcEnabledByPlatform(mContext);
        boolean enabled = isWfcEnabledByUser(mContext);
        int mode = getWfcMode(mContext);
        int mode = getWfcMode(mContext, isNetworkRoaming);
        boolean roaming = isWfcRoamingEnabledByUser(mContext);
        boolean isFeatureOn = available && enabled;