Changed API name from 'isNtn()' to 'isOnlyNonTerrestrialNetwork()' and updated related methods and variables according to API Council recommendations.
isNtn() -> isOnlyNonTerrestrialNetwork() No changes in logic. Bug: 301620244 Test: PreferredSimDialogFragmentTest SimListDialogFragmentTest Change-Id: I2b64262ed4d9f81f830f76b10a2174ad1e1d649f
This commit is contained in:
@@ -705,7 +705,8 @@ public class MobileNetworkRepository extends SubscriptionManager.OnSubscriptions
|
||||
}
|
||||
if (subInfo.isEmbedded()
|
||||
&& (subInfo.getProfileClass() == PROFILE_CLASS_PROVISIONING
|
||||
|| (Flags.oemEnabledSatelliteFlag() && subInfo.isNtn()))) {
|
||||
|| (Flags.oemEnabledSatelliteFlag()
|
||||
&& subInfo.isOnlyNonTerrestrialNetwork()))) {
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "Do not insert the provisioning or satellite eSIM");
|
||||
}
|
||||
|
@@ -59,7 +59,8 @@ public class CallsSimListDialogFragment extends SimListDialogFragment {
|
||||
SubscriptionInfo info = subscriptionManager.getActiveSubscriptionInfo(subId);
|
||||
if (info == null || (info.isEmbedded()
|
||||
&& (info.getProfileClass() == PROFILE_CLASS_PROVISIONING
|
||||
|| (Flags.oemEnabledSatelliteFlag() && info.isNtn())))) {
|
||||
|| (Flags.oemEnabledSatelliteFlag()
|
||||
&& info.isOnlyNonTerrestrialNetwork())))) {
|
||||
continue;
|
||||
}
|
||||
result.add(subscriptionManager.getActiveSubscriptionInfo(subId));
|
||||
|
@@ -100,7 +100,7 @@ public class PreferredSimDialogFragment extends SimDialogFragment implements
|
||||
final SubscriptionInfo info = getPreferredSubscription();
|
||||
if (info == null || (info.isEmbedded()
|
||||
&& (info.getProfileClass() == PROFILE_CLASS_PROVISIONING
|
||||
|| (Flags.oemEnabledSatelliteFlag() && info.isNtn())))) {
|
||||
|| (Flags.oemEnabledSatelliteFlag() && info.isOnlyNonTerrestrialNetwork())))) {
|
||||
dismiss();
|
||||
return;
|
||||
}
|
||||
|
@@ -136,10 +136,12 @@ public class SelectSpecificDataSimDialogFragment extends SimDialogFragment imple
|
||||
|
||||
if ((newSubInfo.isEmbedded()
|
||||
&& (newSubInfo.getProfileClass() == PROFILE_CLASS_PROVISIONING
|
||||
|| (Flags.oemEnabledSatelliteFlag() && newSubInfo.isNtn())))
|
||||
|| (Flags.oemEnabledSatelliteFlag()
|
||||
&& newSubInfo.isOnlyNonTerrestrialNetwork())))
|
||||
|| (currentDataSubInfo.isEmbedded()
|
||||
&& (currentDataSubInfo.getProfileClass() == PROFILE_CLASS_PROVISIONING
|
||||
|| (Flags.oemEnabledSatelliteFlag() && currentDataSubInfo.isNtn())))) {
|
||||
|| (Flags.oemEnabledSatelliteFlag()
|
||||
&& currentDataSubInfo.isOnlyNonTerrestrialNetwork())))) {
|
||||
Log.d(TAG, "do not set the provisioning or satellite eSIM");
|
||||
dismiss();
|
||||
return;
|
||||
|
@@ -145,7 +145,7 @@ public class SimListDialogFragment extends SimDialogFragment {
|
||||
// Remove the provisioning or satellite eSIM from the subscription list.
|
||||
currentSubscriptions.removeIf(info -> info.isEmbedded()
|
||||
&& (info.getProfileClass() == PROFILE_CLASS_PROVISIONING
|
||||
|| (Flags.oemEnabledSatelliteFlag() && info.isNtn())));
|
||||
|| (Flags.oemEnabledSatelliteFlag() && info.isOnlyNonTerrestrialNetwork())));
|
||||
|
||||
boolean includeAskEveryTime = getArguments().getBoolean(KEY_INCLUDE_ASK_EVERY_TIME);
|
||||
boolean isCancelItemShowed = getArguments().getBoolean(KEY_SHOW_CANCEL_ITEM);
|
||||
|
Reference in New Issue
Block a user