OSDN Git Service

Correct dissapearing SurfaceView during exit animations.
authorRobert Carr <racarr@google.com>
Wed, 1 Mar 2017 21:13:45 +0000 (13:13 -0800)
committerRobert Carr <racarr@google.com>
Wed, 1 Mar 2017 21:13:45 +0000 (13:13 -0800)
commit026a6c45e77d3dec8f7ae26b74fe6fba18021caf
tree6d388ff763034314c8d3dd567407dad7908a9ed3
parent555bf41049bbc387d920704f7a1f23314bc84986
Correct dissapearing SurfaceView during exit animations.

We were missing a call to detachChildren in the case
that the visibility change originates from AM (rather than relayout).
Thus we were racing relayout with the client to detach fast enough.
Detach before notifying the client of window visibility changes.

Test: Slow down animation speed. Open close SV app (say Chrome). No flashes.
Change-Id: Ibf027c2ca295f25765ba95b36c1346a715f3bc6e
services/core/java/com/android/server/wm/WindowState.java