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

Commit cb77fcf9 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "upperLayerIndicator_r15 is optional, nr state design changed" into...

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

Change-Id: I2f9aa3d97b12647de55a6bcd3711c7ad68c905f9
parents 0cfda1a0 1a25db68
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;