Merge "[Settings] code refactor - rename isSubscriptionCanBeDisplayed"
This commit is contained in:
@@ -165,7 +165,7 @@ public class SubscriptionsPreferenceController extends AbstractPreferenceControl
|
||||
// Avoid from showing subscription(SIM)s which has been marked as hidden
|
||||
// For example, only one subscription will be shown when there're multiple
|
||||
// subscriptions with same group UUID.
|
||||
if (!isSubscriptionCanBeDisplayed(mContext, subId)) {
|
||||
if (!canSubscriptionBeDisplayed(mContext, subId)) {
|
||||
continue;
|
||||
}
|
||||
activeSubIds.add(subId);
|
||||
@@ -290,7 +290,7 @@ public class SubscriptionsPreferenceController extends AbstractPreferenceControl
|
||||
// For example, only one subscription will be shown when there're multiple
|
||||
// subscriptions with same group UUID.
|
||||
.filter(subInfo ->
|
||||
isSubscriptionCanBeDisplayed(mContext, subInfo.getSubscriptionId()))
|
||||
canSubscriptionBeDisplayed(mContext, subInfo.getSubscriptionId()))
|
||||
.count() >= (Utils.isProviderModelEnabled(mContext) ? 1 : 2);
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ public class SubscriptionsPreferenceController extends AbstractPreferenceControl
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
boolean isSubscriptionCanBeDisplayed(Context context, int subId) {
|
||||
boolean canSubscriptionBeDisplayed(Context context, int subId) {
|
||||
return (SubscriptionUtil.getAvailableSubscription(context,
|
||||
ProxySubscriptionManager.getInstance(context), subId) != null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user