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

Commit d459194b authored by Malcolm Chen's avatar Malcolm Chen
Browse files

Initialize new mPhoneIdToSlotId item to INVALID_SLOT_ID upon ss->ds

switch.

Test: build
Change-Id: I598b96ceff2552e73fb223896b60c17407463019
Merged-In: I598b96ceff2552e73fb223896b60c17407463019
parent 22f086f6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -546,7 +546,11 @@ public class UiccController extends Handler {
        // Resize array.
        mPhoneIdToSlotId = copyOf(mPhoneIdToSlotId, mCis.length);

        // Register for new active modem for ss -> ds switch.
        // For ds -> ss switch, there's no need to unregister as the mCis should unregister
        // everything itself.
        for (int i = prevActiveModemCount; i < mCis.length; i++) {
            mPhoneIdToSlotId[i] = INVALID_SLOT_ID;
            mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, i);

            /*