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

Commit 3113ad48 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Support splitting task limit minimize Change into its own transition

Before this CL we would add minimize changes to existing app launch
transitions through DTC#handleRequest(). With this CL we add support in
DesktopTasksLimiter to use runOnIdle() (called from onTransitionReady())
to check whether to launch a new minimize transition.
The benefit of using runOnIdle() instead of handleRequest() is that in
runOnIdle() we have information about all the collected Changes in the
transition so we can make a more informed decision on whether to
minimize. This new approach supports edge-cases such as launching task
trampolines and opening a new tab in Chrome.

Also support adding a start-delay to task limit minimize animations
through the property
"persist.wm.debug.desktop_transitions.minimize.start_delay_ms"

Bug: 404549853
Bug: 356337427
Flag: com.android.window.flags.enable_desktop_task_limit_separate_transition
Test: DesktopTasksLimiterTest, DesktopMixedTransitionHandlerTest
Change-Id: I47c035c260aab9146988031f6c1b872ddd4369c6
parent 14358312
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment