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

Commit 239bfe03 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ensure switching user is immediately added to starting users" into main

parents 8d24b05a d11414fb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3938,6 +3938,9 @@ public class WindowManagerService extends IWindowManager.Stub
    /** Update the current user. */
    public void setCurrentUser(@UserIdInt int newUserId, UserState uss) {
        synchronized (mGlobalLock) {
            if (DesktopExperienceFlags.ENABLE_APPLY_DESK_ACTIVATION_ON_USER_SWITCH.isTrue()) {
                mRoot.mTaskSupervisor.mStartingUsers.add(uss);
            }
            final TransitionController controller = mAtmService.getTransitionController();
            final Runnable applyUserChange = () -> {
                mCurrentUserId = newUserId;