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

Commit bafde7d5 authored by Sandeep Gutta's avatar Sandeep Gutta
Browse files

MSIM: Do not update subInfo if Uicc Card is null

Do not go ahead and update the SubInfo records if the
Uicc Card is null.

Change-Id: Iad2dd52cd2804f8bbbf543177ddbe5e1107c8bd4
CRs-Fixed: 772977
parent bd11da04
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -295,7 +295,13 @@ public class SubInfoRecordUpdater extends Handler {
        UiccCard newCard = mUiccController.getUiccCard(slotId);
        if (newCard != null) {
            newState = newCard.getCardState();
        } else {
            // Uicc Card is null return from here, this would be called
            // again after reading the SIM Card status from RIL.
            Rlog.i(LOG_TAG, "updateIccAvailability: newCard is null, slotId " + slotId);
            return;
        }

        CardState oldState = sCardState[slotId];
        sCardState[slotId] = newState;
        logd("Slot[" + slotId + "]: New Card State = "