Merge "Migrated MultiSimSettingController"

This commit is contained in:
Treehugger Robot
2023-03-06 21:08:32 +00:00
committed by Gerrit Code Review

View File

@@ -648,6 +648,15 @@ public class SubscriptionInfo implements Parcelable {
return mIsOpportunistic; 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. * Used in scenarios where different subscriptions are bundled as a group.
* It's typically a primary and an opportunistic subscription. (see {@link #isOpportunistic()}) * It's typically a primary and an opportunistic subscription. (see {@link #isOpportunistic()})