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
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment