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

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

Merge "Update usage of UiccCardInfo API"

parents 75cefa59 f96e3f11
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -956,8 +956,8 @@ public class EuiccConnector extends StateMachine implements ServiceConnection {
    private int getSlotIdFromCardId(int cardId) {
        TelephonyManager tm = (TelephonyManager)
                mContext.getSystemService(Context.TELEPHONY_SERVICE);
        UiccCardInfo[] infos = tm.getUiccCardsInfo();
        if (infos == null) {
        List<UiccCardInfo> infos = tm.getUiccCardsInfo();
        if (infos == null || infos.size() == 0) {
            return SubscriptionManager.INVALID_SIM_SLOT_INDEX;
        }
        int slotId = SubscriptionManager.INVALID_SIM_SLOT_INDEX;