Sync main branch with QPR branch changes
Original change (ag/13006754) was modified to merge in QPR (ag/13023201). Adding the same changes to the main branch to keep it consistent. Test: make RunSettingsRoboTests Bug: 167643728 Change-Id: Iedf14d2c2ac9181c9aad0ed929b19ffeb60560b2
This commit is contained in:
@@ -140,7 +140,7 @@ public class SimStatusDialogController implements LifecycleObserver, OnResume, O
|
||||
|
||||
private SubscriptionInfo mSubscriptionInfo;
|
||||
private TelephonyDisplayInfo mTelephonyDisplayInfo;
|
||||
private ServiceState mServiceState;
|
||||
private ServiceState mPreviousServiceState;
|
||||
|
||||
private final int mSlotIndex;
|
||||
private TelephonyManager mTelephonyManager;
|
||||
@@ -438,7 +438,7 @@ public class SimStatusDialogController implements LifecycleObserver, OnResume, O
|
||||
final int state = Utils.getCombinedServiceState(serviceState);
|
||||
if (!Utils.isInService(serviceState)) {
|
||||
resetSignalStrength();
|
||||
} else if (mServiceState != null && !Utils.isInService(mServiceState)) {
|
||||
} else if (!Utils.isInService(mPreviousServiceState)) {
|
||||
// If ServiceState changed from out of service -> in service, update signal strength.
|
||||
updateSignalStrength(mTelephonyManager.getSignalStrength());
|
||||
}
|
||||
@@ -771,7 +771,7 @@ public class SimStatusDialogController implements LifecycleObserver, OnResume, O
|
||||
updateNetworkProvider();
|
||||
updateServiceState(serviceState);
|
||||
updateRoamingStatus(serviceState);
|
||||
mServiceState = serviceState;
|
||||
mPreviousServiceState = serviceState;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user