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

Commit 4fa762e5 authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Merge "Have isValidPhoneId and isValidSlotIndex based on activeModemCount." am: 300a0262

am: b05c6d8f

Change-Id: If3dfcac1f8a4a46231f428aebc14f98ee16bc4e2
parents f2d84d6f b05c6d8f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2101,13 +2101,13 @@ public class SubscriptionManager {
    /** @hide */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023)
    public static boolean isValidSlotIndex(int slotIndex) {
        return slotIndex >= 0 && slotIndex < TelephonyManager.getDefault().getSupportedModemCount();
        return slotIndex >= 0 && slotIndex < TelephonyManager.getDefault().getActiveModemCount();
    }

    /** @hide */
    @UnsupportedAppUsage
    public static boolean isValidPhoneId(int phoneId) {
        return phoneId >= 0 && phoneId < TelephonyManager.getDefault().getSupportedModemCount();
        return phoneId >= 0 && phoneId < TelephonyManager.getDefault().getActiveModemCount();
    }

    /** @hide */