Merge "Deep copy service state object"

This commit is contained in:
Treehugger Robot
2021-09-10 21:43:00 +00:00
committed by Gerrit Code Review

View File

@@ -444,7 +444,9 @@ public class ServiceState implements Parcelable {
mArfcnRsrpBoost = s.mArfcnRsrpBoost;
synchronized (mNetworkRegistrationInfos) {
mNetworkRegistrationInfos.clear();
mNetworkRegistrationInfos.addAll(s.getNetworkRegistrationInfoList());
for (NetworkRegistrationInfo nri : s.getNetworkRegistrationInfoList()) {
mNetworkRegistrationInfos.add(new NetworkRegistrationInfo(nri));
}
}
mNrFrequencyRange = s.mNrFrequencyRange;
mOperatorAlphaLongRaw = s.mOperatorAlphaLongRaw;