MobileSignalController removes the code for icon reset.

1. onDataConnectionStateChanged remove the code for icon reset.
2. update servicestate immediately.

Bug: 157710254
Test: build pass.
Change-Id: I4678ace5b16ad06eacd8abf268960dd3bdb5a77f
Merged-In: I4678ace5b16ad06eacd8abf268960dd3bdb5a77f
This commit is contained in:
SongFerngWang
2020-06-02 22:53:06 +08:00
parent fccdae88d9
commit e5eb670c8c

View File

@@ -640,8 +640,7 @@ public class MobileSignalController extends SignalController<
+ " dataState=" + state.getDataRegistrationState());
}
mServiceState = state;
// onDisplayInfoChanged is invoked directly after onServiceStateChanged, so not calling
// updateTelephony() to prevent icon flickering in case of overrides.
updateTelephony();
}
@Override
@@ -651,12 +650,6 @@ public class MobileSignalController extends SignalController<
+ " type=" + networkType);
}
mDataState = state;
if (networkType != mTelephonyDisplayInfo.getNetworkType()) {
Log.d(mTag, "onDataConnectionStateChanged:"
+ " network type change and reset displayInfo. type=" + networkType);
mTelephonyDisplayInfo = new TelephonyDisplayInfo(networkType,
TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE);
}
updateTelephony();
}