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

Commit fb92b7d0 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

Change-Id: I48830de7f6cbe88f7080e34b8a8d1da0c84113ae
parents 8b0a0b64 d0a964b3
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;
    }