Skip to content
Commit b824f87c authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Defer stop for all activities becoming invisible

If we are deferring a stop until a window is becoming visible,
it's a good idea to also defer stopping all other activities that
are go into stopping state to avoid flickers.

This fixes an issue with quickstep when swiping right and the
previous activity hasn't finished pausing yet when we start the
new activity. In the normal case, prev=Launcher and all is fine,
as we wait with stopping launcher until the animation is done. In
the bad case, prev=the previous activity that was on screen before
swiping, so Launcher doesn't get added to the waiting list, which
means that it will be stopped too early, aborting the animation
because Launcher is also driving it.

Test: go/wm-smoke
Test: Swipe right from Chrome to any other app, observe no jump
Bug: 80313326
Change-Id: Ia24b5de74a1d321f11735cdffc331d3806bae2d8
parent cd56073b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment