diff options
author | 2025-02-27 00:32:05 +0000 | |
---|---|---|
committer | 2025-02-27 18:59:40 +0000 | |
commit | 939036d4812ebd25b07dcd7d5e7999f12ddaedca (patch) | |
tree | 967490f96485a331ffd9f8270b253e05e13a6008 /cmds/bootanimation/BootAnimation.cpp | |
parent | 6ad54c34a3023cc3a9a13d562d868dde90d20626 (diff) |
[31/N] Desks: Consolidate desk activation utils
This change unifies some duplicated activation logic that existed in
both prepareMoveTaskToDeskAndActive() and addDeskActivationChanges().
prepareMoveTaskToDeskAndActive() was essentially doing the same work
that addDeskActivationChanges() did, plus calling
addMoveToDeskTaskChanges(). With this change, the prepare() function
now internally uses addDeskActivationChanges(), and is renamed to
addDeskActivationWithMovingTaskChanges() to follow the existing
addXChanges() pattern.
It also removes bringDesktopAppsToFrontBeforeShowingNewTask(), since
it's just an overloaded version of bringDesktopAppsToFront that
shouldn't be needed in kotlin.
This is a pure refactor, so no behavior changes are expected.
Flag: com.android.window.flags.enable_multiple_desktops_backend
Bug: 362720497
Test: atest WMShellUnitTests
Change-Id: Ife6b80c23f03b0f71a4b2f37c5f231df068e1035
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions