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

Commit 62b76a38 authored by Fyodor Kupolov's avatar Fyodor Kupolov Committed by android-build-merger
Browse files

Merge "Always log new user state to event log" into oc-dev

am: 6db4406f

Change-Id: I975664bc2943ef95340ce8003a1e78d72c7dc2b5
parents a0a799f8 6db4406f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,6 @@ public final class UserState {
    public boolean setState(int oldState, int newState) {
        if (state == oldState) {
            setState(newState);
            EventLogTags.writeAmUserStateChanged(mHandle.getIdentifier(), newState);
            return true;
        } else {
            Slog.w(TAG, "Expected user " + mHandle.getIdentifier() + " in state "
@@ -84,6 +83,7 @@ public final class UserState {
        }
        Slog.i(TAG, "User " + mHandle.getIdentifier() + " state changed from "
                + stateToString(state) + " to " + stateToString(newState));
        EventLogTags.writeAmUserStateChanged(mHandle.getIdentifier(), newState);
        lastState = state;
        state = newState;
    }