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

Commit d13a12c6 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/32666722'] into 25Q2-release.

Change-Id: Ic26de0d5cf701647303e94f6ea1dae48ec4b1849
parents b5f6b849 6cc79f73
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1665,7 +1665,7 @@ public class UiccController extends Handler {
    }

    private boolean isValidPhoneIndex(int index) {
        return (index >= 0 && index < TelephonyManager.getDefault().getPhoneCount());
        return (index >= 0 && index < mTelephonyManager.getActiveModemCount());
    }

    private boolean isValidSlotIndex(int index) {
@@ -1673,7 +1673,7 @@ public class UiccController extends Handler {
    }

    private boolean isShuttingDown() {
        for (int i = 0; i < TelephonyManager.getDefault().getActiveModemCount(); i++) {
        for (int i = 0; i < mTelephonyManager.getActiveModemCount(); i++) {
            if (PhoneFactory.getPhone(i) != null &&
                    PhoneFactory.getPhone(i).isShuttingDown()) {
                return true;