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

Account for recents animation when reporting client visibility

- While the current app is still resumed and running in overview, the
  start of a new activity will trigger the current app to pause and be
  added to the stopping list while the new app is passed to the
  existing recents animation via onTaskAppeared() callback. We don't
  actually process the stopping activities until the recents animation
  is done, but pausing will trigger the report client visibility to
  the app if the animation is complete (which triggers the SurfaceView
  to destroy the surface).  This check needs to also account for the
  recents animation that is driving the launching app as well.

Fixes: 184211875
Test: Open an app with a SurfaceView in overview and then launch the
      next app (repeat until you see a blank area where the SV is)
Change-Id: I35d1947795f529b701af22586b23441d5ac55313
Merged-In: I35d1947795f529b701af22586b23441d5ac55313
parent cd40c740
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment