Merge "Migrated MultiSimSettingController" am: 44102a405a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2471165 Change-Id: Id211020a12ee4cf799f76dc5f66daa2238bc550d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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()})
|
||||
|
||||
Reference in New Issue
Block a user