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
Loading
Please register or sign in to comment