Merge "Return the correct roaming status when check isNetworkRoaming()"

This commit is contained in:
Josh Hou
2020-01-22 23:41:48 +00:00
committed by Gerrit Code Review

View File

@@ -2346,7 +2346,7 @@ public class TelephonyManager {
@UnsupportedAppUsage
public boolean isNetworkRoaming(int subId) {
int phoneId = SubscriptionManager.getPhoneId(subId);
return getTelephonyProperty(subId, TelephonyProperties.operator_is_roaming(), false);
return getTelephonyProperty(phoneId, TelephonyProperties.operator_is_roaming(), false);
}
/**