replace getSubId with getSubIdUsingPhoneId
Bug: 29620319
Change-Id: I407a30610dd6d1c22b42969e9a759a72d8704f7a
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index ed014d3..2fd2171 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -2038,9 +2038,8 @@
*/
@Override
public boolean hasIccCardUsingSlotId(int slotId) {
- int subId[] = mSubscriptionController.getSubIdUsingSlotId(slotId);
- final Phone phone = getPhone(subId[0]);
- if (subId != null && phone != null) {
+ final Phone phone = PhoneFactory.getPhone(slotId);
+ if (phone != null) {
return phone.getIccCard().hasIccCard();
} else {
return false;