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

Commit a66bffb0 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Skip unlock requests for users who aren't running." into nyc-dev

parents b53874e7 27b5d2e2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -893,8 +893,9 @@ final class UserController {
    boolean unlockUserCleared(final int userId, byte[] token, byte[] secret,
            ProgressReporter progress) {
        synchronized (mService) {
            // Bail if already running unlocked
            // Bail if already running unlocked, or if not running at all
            final UserState uss = mStartedUsers.get(userId);
            if (uss == null) return false;
            switch (uss.state) {
                case STATE_RUNNING_UNLOCKING:
                case STATE_RUNNING_UNLOCKED: