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

Commit 246ad34e authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by android-build-merger
Browse files

Merge "PhoneSwitcher: Fix ArrayIndexOutOfBoundsException in isPhoneActive()" am: d0a964b3

am: fb92b7d0

Change-Id: I22efd3105d8e97be75692cb1a260122590c30f24
parents be020b3e fb92b7d0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1110,6 +1110,8 @@ public class PhoneSwitcher extends Handler {

    @VisibleForTesting
    protected boolean isPhoneActive(int phoneId) {
        if (phoneId >= mActiveModemCount)
            return false;
        return mPhoneStates[phoneId].active;
    }