Modify CallFeatureSetting WFC mode to apply to roaming cases.
Bug:34094840
Change-Id: Ied98b1f9aaa7a1dda36cd0c30d9b54e232aa35fa
diff --git a/src/com/android/phone/CallFeaturesSetting.java b/src/com/android/phone/CallFeaturesSetting.java
index b5e8026..a6d54ef 100644
--- a/src/com/android/phone/CallFeaturesSetting.java
+++ b/src/com/android/phone/CallFeaturesSetting.java
@@ -330,7 +330,8 @@
} else {
int resId = com.android.internal.R.string.wifi_calling_off_summary;
if (ImsManager.isWfcEnabledByUser(mPhone.getContext())) {
- int wfcMode = ImsManager.getWfcMode(mPhone.getContext());
+ boolean isRoaming = telephonyManager.isNetworkRoaming();
+ int wfcMode = ImsManager.getWfcMode(mPhone.getContext(), isRoaming);
switch (wfcMode) {
case ImsConfig.WfcModeFeatureValueConstants.WIFI_ONLY:
resId = com.android.internal.R.string.wfc_mode_wifi_only_summary;