Loading telephony/java/android/telephony/SubscriptionInfo.java +9 −0 Original line number Diff line number Diff line Loading @@ -648,6 +648,15 @@ public class SubscriptionInfo implements Parcelable { return mIsOpportunistic; } /** * @return {@code true} if the subscription is from the actively used SIM. * * @hide */ public boolean isActive() { return mSimSlotIndex >= 0 || mType == SubscriptionManager.SUBSCRIPTION_TYPE_REMOTE_SIM; } /** * Used in scenarios where different subscriptions are bundled as a group. * It's typically a primary and an opportunistic subscription. (see {@link #isOpportunistic()}) Loading Loading
telephony/java/android/telephony/SubscriptionInfo.java +9 −0 Original line number Diff line number Diff line Loading @@ -648,6 +648,15 @@ public class SubscriptionInfo implements Parcelable { return mIsOpportunistic; } /** * @return {@code true} if the subscription is from the actively used SIM. * * @hide */ public boolean isActive() { return mSimSlotIndex >= 0 || mType == SubscriptionManager.SUBSCRIPTION_TYPE_REMOTE_SIM; } /** * Used in scenarios where different subscriptions are bundled as a group. * It's typically a primary and an opportunistic subscription. (see {@link #isOpportunistic()}) Loading