Merge "Migrated MultiSimSettingController" am: 44102a405a am: d6d15db75e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2471165 Change-Id: Iec4f6a3099c1e28fce44db1a1d4394d8cb6cc889 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