Merge "[Settings] Make UI be able to update current status, after SIM absent." into sc-dev

This commit is contained in:
Tom Hsu
2021-07-01 08:28:15 +00:00
committed by Android (Google) Code Review

View File

@@ -80,8 +80,7 @@ public class ProviderModelSliceHelper {
public boolean hasCarrier() {
if (isAirplaneModeEnabled()
|| mSubscriptionManager == null || mTelephonyManager == null
|| mSubscriptionManager.getDefaultDataSubscriptionId()
== mSubscriptionManager.INVALID_SUBSCRIPTION_ID) {
|| mSubscriptionManager.getActiveSubscriptionIdList().length <= 0) {
return false;
}
return true;