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

Commit 8060856b authored by Jordan Liu's avatar Jordan Liu Committed by android-build-merger
Browse files

Merge "Invalid card ID should map to invalid slot" am: 136e243c

am: 58d5665d

Change-Id: I4e97d1e7d3e721b98a9a2ea778f9bf0b8b3db9af
parents e822f815 58d5665d
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();