Loading src/com/android/settings/network/SubscriptionUtil.java +1 −18 Original line number Diff line number Diff line Loading @@ -115,26 +115,9 @@ public class SubscriptionUtil { return null; } if (subInfo.isEmbedded()) { return subInfo; } // Look for physical SIM which presented in slots no mater active or not. final UiccSlotInfo[] slotsInfo = getUiccSlotsInfo(context); if (slotsInfo == null) { return null; } for (UiccSlotInfo slotInfo : slotsInfo) { if ((!slotInfo.getIsEuicc()) && (slotInfo.getCardStateInfo() == CARD_STATE_INFO_PRESENT) && (slotInfo.getLogicalSlotIdx() == subInfo.getSimSlotIndex()) && TextUtils.equals(slotInfo.getCardId(), subInfo.getCardString())) { return subInfo; } } return null; } private static UiccSlotInfo [] getUiccSlotsInfo(Context context) { final TelephonyManager telMgr = context.getSystemService(TelephonyManager.class); return telMgr.getUiccSlotsInfo(); Loading Loading
src/com/android/settings/network/SubscriptionUtil.java +1 −18 Original line number Diff line number Diff line Loading @@ -115,26 +115,9 @@ public class SubscriptionUtil { return null; } if (subInfo.isEmbedded()) { return subInfo; } // Look for physical SIM which presented in slots no mater active or not. final UiccSlotInfo[] slotsInfo = getUiccSlotsInfo(context); if (slotsInfo == null) { return null; } for (UiccSlotInfo slotInfo : slotsInfo) { if ((!slotInfo.getIsEuicc()) && (slotInfo.getCardStateInfo() == CARD_STATE_INFO_PRESENT) && (slotInfo.getLogicalSlotIdx() == subInfo.getSimSlotIndex()) && TextUtils.equals(slotInfo.getCardId(), subInfo.getCardString())) { return subInfo; } } return null; } private static UiccSlotInfo [] getUiccSlotsInfo(Context context) { final TelephonyManager telMgr = context.getSystemService(TelephonyManager.class); return telMgr.getUiccSlotsInfo(); Loading