Loading src/java/com/android/internal/telephony/SubscriptionController.java +2 −4 Original line number Diff line number Diff line Loading @@ -596,8 +596,6 @@ public class SubscriptionController extends ISub.Stub { */ @Override public int getActiveSubInfoCount(String callingPackage) { if (DBG) logd("[getActiveSubInfoCount]+"); if (!canReadPhoneState(callingPackage, "getActiveSubInfoCount")) { return 0; } Loading @@ -608,10 +606,10 @@ public class SubscriptionController extends ISub.Stub { List<SubscriptionInfo> records = getActiveSubscriptionInfoList( mContext.getOpPackageName()); if (records == null) { if (DBG) logd("[getActiveSubInfoCount] records null"); if (VDBG) logd("[getActiveSubInfoCount] records null"); return 0; } if (DBG) logd("[getActiveSubInfoCount]- count: " + records.size()); if (VDBG) logd("[getActiveSubInfoCount]- count: " + records.size()); return records.size(); } finally { Binder.restoreCallingIdentity(identity); Loading Loading
src/java/com/android/internal/telephony/SubscriptionController.java +2 −4 Original line number Diff line number Diff line Loading @@ -596,8 +596,6 @@ public class SubscriptionController extends ISub.Stub { */ @Override public int getActiveSubInfoCount(String callingPackage) { if (DBG) logd("[getActiveSubInfoCount]+"); if (!canReadPhoneState(callingPackage, "getActiveSubInfoCount")) { return 0; } Loading @@ -608,10 +606,10 @@ public class SubscriptionController extends ISub.Stub { List<SubscriptionInfo> records = getActiveSubscriptionInfoList( mContext.getOpPackageName()); if (records == null) { if (DBG) logd("[getActiveSubInfoCount] records null"); if (VDBG) logd("[getActiveSubInfoCount] records null"); return 0; } if (DBG) logd("[getActiveSubInfoCount]- count: " + records.size()); if (VDBG) logd("[getActiveSubInfoCount]- count: " + records.size()); return records.size(); } finally { Binder.restoreCallingIdentity(identity); Loading