OSDN Git Service

Fixed incorrect service state populated
authorJack Yu <jackyu@google.com>
Mon, 8 Apr 2019 08:10:27 +0000 (01:10 -0700)
committerJack Yu <jackyu@google.com>
Mon, 8 Apr 2019 08:10:27 +0000 (01:10 -0700)
ServiceState.setStateOutOfService does not correctly
clean up the information so the old WLAN registration info
got populated for the next time use.

Bug: 130048577
Test: Telephony sanity tests
Change-Id: I7fab7090c22390914af024c44bffd643c13f33e5

telephony/java/android/telephony/ServiceState.java

index d2c0705..8c92e84 100644 (file)
@@ -1045,6 +1045,7 @@ public class ServiceState implements Parcelable {
         mIsEmergencyOnly = false;
         mLteEarfcnRsrpBoost = 0;
         mNrFrequencyRange = FREQUENCY_RANGE_UNKNOWN;
+        mNetworkRegistrationInfos.clear();
         addNetworkRegistrationInfo(new NetworkRegistrationInfo.Builder()
                 .setDomain(NetworkRegistrationInfo.DOMAIN_CS)
                 .setTransportType(AccessNetworkConstants.TRANSPORT_TYPE_WWAN)