Skip to content
Commit a2eaf83a authored by Winson Chung's avatar Winson Chung
Browse files

Fix flash when canceling the recents animation with a screenshot

- When canceling because of starting home, use the screenshot call to
  allow Launcher to handle the cancel more cleanly
- Since the cancel+screenshot path was added, we no longer cancel
  on root task order change (we just get onTaskAppeared now), it's
  purely a deferred path for the runner to handle the cancel in a clean
  way. So instead of having a separate animator, just add a screenshot
  surface to the existing leash, and clean up everything when the
  runner finishes the recents animation. This prevents the issue where
  transferring the animation causes the task to be reparented from the
  leash and made immediately visible (and fullscreen)
- Remove some unused code

Fixes: 185643608
Test: atest RecentsAnimationControllerTests
Test: Manually enable live-tile for 2/3 button, tap home and ensure
      there's no flash
Change-Id: I57775e5df55ae80931ad02c21f190f29ffa76881
parent 6a930e06
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