Merge "[Settings] Make UI be able to update current status, after SIM absent." into sc-dev
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user