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

Commit d0a964b3 authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Gerrit Code Review
Browse files

Merge "PhoneSwitcher: Fix ArrayIndexOutOfBoundsException in isPhoneActive()"

parents b6569ff9 2542a844
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1110,6 +1110,8 @@ public class PhoneSwitcher extends Handler {


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