+13
−7
+1
−1
+1
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
To allow reusing DesktopTasksController functions that build WCTs for desktop operations for cases where the intended user is not current (such as during user-switching), this change removes the |taskRepository| member variable from inner functions and replaces it with |DesktopUserRepositories.getProfile(userId)| using a userId argument passed by callers. The source of |userId|s become the TaskInfo.userId when available or ShellController.currentUserId when we really do mean to use the current user. ShellController is the source of truth for Shell, so we use that instead of manually tracking user changes. This is a refactor to prepare for a future change where a transition request with user change info requires restoring the active desk of an incoming user (which would not be "current" yet to SystemUI/Shell) and deactivating the activate desk of the outgoing user. Flag: EXEMPT refactor Bug: 430988310 Bug: 406255019 Test: atest WMShellUnitTest Change-Id: Iad29fa2f4dd51afdea62d31f96742d1879dc92b8