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

Commit 136e243c authored by Jordan Liu's avatar Jordan Liu Committed by Gerrit Code Review
Browse files

Merge "Invalid card ID should map to invalid slot"

parents ac0abf24 94cd9454
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -954,6 +954,9 @@ public class EuiccConnector extends StateMachine implements ServiceConnection {
     * Gets the slot ID from the card ID.
     */
    private int getSlotIdFromCardId(int cardId) {
        if (cardId == TelephonyManager.INVALID_CARD_ID) {
            return SubscriptionManager.INVALID_SIM_SLOT_INDEX;
        }
        TelephonyManager tm = (TelephonyManager)
                mContext.getSystemService(Context.TELEPHONY_SERVICE);
        List<UiccCardInfo> infos = tm.getUiccCardsInfo();