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

Commit 9fc43880 authored by Wileen Chiu's avatar Wileen Chiu
Browse files

Map valid slotId to index for mPhoneIdToSlotId

- Store the valid slotId in mPhoneIdToSlotId when
GET_SIM_STATUS provides a physicalSlotIndex that
is not equal to INVALID_SLOT_ID.

Bug: 74016297
Test: manual, ensure crash does not occur if GET_SLOT is not implemented
Change-Id: Iece3ee00132d923a24c12faf74b438d006e5e4e8
parent 682fac6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -479,8 +479,8 @@ public class UiccController extends Handler {
        if (VDBG) log("onGetIccCardStatusDone: phoneId " + index + " physicalSlotIndex " + slotId);
        if (slotId == INVALID_SLOT_ID) {
            slotId = index;
            mPhoneIdToSlotId[index] = slotId;
        }
        mPhoneIdToSlotId[index] = slotId;

        if (VDBG) logPhoneIdToSlotIdMapping();