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() { public boolean hasCarrier() {
if (isAirplaneModeEnabled() if (isAirplaneModeEnabled()
|| mSubscriptionManager == null || mTelephonyManager == null || mSubscriptionManager == null || mTelephonyManager == null
|| mSubscriptionManager.getDefaultDataSubscriptionId() || mSubscriptionManager.getActiveSubscriptionIdList().length <= 0) {
== mSubscriptionManager.INVALID_SUBSCRIPTION_ID) {
return false; return false;
} }
return true; return true;