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

Commit a65281c9 authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by android-build-merger
Browse files

Merge "Initialize new mPhoneIdToSlotId item to INVALID_SLOT_ID upon ss->ds switch."

am: bb1a5b4e

Change-Id: If23b3b2dbe42534f650f0ddd4c79f013c91309d4
parents 9b50ac94 bb1a5b4e
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);

            /*