Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6998a66f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Migrated MultiSimSettingController" am: 44102a40 am: d6d15db7

parents ff6f65ca d6d15db7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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()})