Modify setVoWiFiNonPersistent to use current roaming mode
Test: atest FrameworksTelephonyTests
Change-Id: I6d9dcbffa160db1ca8b3faa7936c171d4c5edaf1
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index ae27e67..0135330 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -2925,8 +2925,10 @@
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);
+ getSlotIndexOrException(subId)).setWfcNonPersistent(isCapable, mode, isRoaming);
} finally {
Binder.restoreCallingIdentity(identity);
}