Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a25db68 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "upperLayerIndicator_r15 is optional, nr state design changed" into rvc-dev am: 5eec2486

Change-Id: I86e71d8d5aa1b4177f802631d7219f2cf497e0d7
parents ac261973 5eec2486
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -2046,18 +2046,16 @@ public class ServiceStateTracker extends Handler {
            }
        }

        int newNrState = regInfo.getNrState();
        int oldNrState = regInfo.getNrState();
        int newNrState = oldNrState;
        if (hasNrSecondaryServingCell) {
            if (regInfo.getNrState() == NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED) {
            newNrState = NetworkRegistrationInfo.NR_STATE_CONNECTED;
            }
        } else {
            if (regInfo.getNrState() == NetworkRegistrationInfo.NR_STATE_CONNECTED) {
                newNrState = NetworkRegistrationInfo.NR_STATE_NOT_RESTRICTED;
            }
            regInfo.updateNrState();
            newNrState = regInfo.getNrState();
        }

        boolean hasChanged = newNrState != regInfo.getNrState();
        boolean hasChanged = newNrState != oldNrState;
        regInfo.setNrState(newNrState);
        ss.addNetworkRegistrationInfo(regInfo);
        return hasChanged;