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

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

Restore behavior of isUserRunning

Before N, ActivityManager.isUserRunning returned false if user was in
USER_STOPPING or USER_SHUTDOWN.

Test: create/switch to guest/remove guest, verify there are no app crashes
Bug: 62233199
Change-Id: I62c4ee06b892715e99e6edff8c84a50e5690c5b9
parent 3e32b84e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1499,8 +1499,7 @@ final class UserController {
            }
        }

        // One way or another, we're running!
        return true;
        return state.state != UserState.STATE_STOPPING && state.state != UserState.STATE_SHUTDOWN;
    }

    UserInfo getCurrentUser() {