Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f67f121 authored by Josh Hou's avatar Josh Hou
Browse files

Return the correct roaming status when check isNetworkRoaming()

Bug: 148009135
Test: Verify WFC is registered successfully during roaming
Change-Id: I3b70846848b9b12381f65222db623064b7b57254
parent 867e1aed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2349,7 +2349,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);
    }

    /**