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

Commit fa0edc8c authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Log user running states

Test: manual
Bug: 28278870
Change-Id: I6ce20167e98eb44c838a681471095d00c4a6346d
parent de06d67d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.server.am;

import static com.android.server.am.ActivityManagerDebugConfig.DEBUG_MU;
import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM;
import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME;

@@ -80,10 +79,11 @@ public final class UserState {
    }

    public void setState(int newState) {
        if (DEBUG_MU) {
        if (newState == state) {
            return;
        }
        Slog.i(TAG, "User " + mHandle.getIdentifier() + " state changed from "
                + stateToString(state) + " to " + stateToString(newState));
        }
        lastState = state;
        state = newState;
    }