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

Commit c703aec7 authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "AllowDelayedLocking as long as run-in-bg allowed" into main

parents 0da1304d c8dd1b77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2383,7 +2383,7 @@ class UserController implements Handler.Callback {
            // If running in background is disabled or mStopUserOnSwitch mode, stop the user.
            if (hasRestriction || isStopUserOnSwitchEnabled()) {
                Slogf.i(TAG, "Stopping user %d and its profiles on user switch", oldUserId);
                stopUsersLU(oldUserId, /* allowDelayedLocking= */ false, null, null);
                stopUsersLU(oldUserId, /* allowDelayedLocking= */ !hasRestriction, null, null);
                return;
            }
        }