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

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

Merge "Update usage of UiccCardInfo API"

am: f36c8bae

Change-Id: I1a9f59ecb95f31dddb4cca2c42b135f2ff91a2eb
parents 925c233f f36c8bae
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;