[Settings] Make UI be able to update current status, after SIM absent.
- The cache of default data subscription id does not update when SIM absent. Therefore, uses getActiveSubscriptionIdList instead current to make it more precise. Bug: 192032602 Test: Manual test. see b/192032602#7 Change-Id: I29e697e97d32ecb2e93c9620ec65215f963e4ebe
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