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

Commit 44102a40 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Migrated MultiSimSettingController"

parents 8b542529 b427535c
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()})