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

Commit 4fbed237 authored by Muralidhar Reddy Mule's avatar Muralidhar Reddy Mule Committed by Android (Google) Code Review
Browse files

Merge "Wrong subscription is getting cleared during slot switch" into udc-dev

parents 0334d1dc d449f565
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -373,6 +373,9 @@ public class UiccSlot extends Handler {
        }
        // no card present in the slot now; dispose port and then card if needed.
        disposeUiccCardIfNeeded(false /* sim state is not unknown */, portIndex);
        // If SLOT_STATUS is the last event, wrong subscription is getting invalidate during
        // slot switch event. To avoid it, reset the phoneId corresponding to the portIndex.
        mPortIdxToPhoneId.put(portIndex, INVALID_PHONE_ID);
        mLastRadioState.put(portIndex, TelephonyManager.RADIO_POWER_UNAVAILABLE);
    }