Do not rely on roaming when setting WFC roaming setting
Bug: 131267855
Test: atest FrameworksTelephonyTests:ImsManagerTest
Change-Id: I759e7d77ef9f7d7d773bcdf51df826dd1e146a3b
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 495bee3..500a779 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -3067,10 +3067,8 @@
final long identity = Binder.clearCallingIdentity();
try {
// TODO: Refactor to remove ImsManager dependence and query through ImsPhone directly.
- boolean isRoaming = TelephonyManager.from(
- getPhone(subId).getContext()).isNetworkRoaming(subId);
ImsManager.getInstance(mApp,
- getSlotIndexOrException(subId)).setWfcNonPersistent(isCapable, mode, isRoaming);
+ getSlotIndexOrException(subId)).setWfcNonPersistent(isCapable, mode);
} finally {
Binder.restoreCallingIdentity(identity);
}