Skip to content
Commit c9ac64da authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Do not set mAnimatingExit on invisible window

With shell transition, WS#isExitAnimationRunningSelfOrParent of an
activity window can be true if the display is running change transition
(e.g. rotation). But there won't be a WS#onExitAnimationDone to consume
the flag, because shell transition doesn't use AR#onAnimationFinished,
also the activity may not be included in the transition participants.

So instead of adding workaround to call WS#cleanupAnimatingExitWindow
for all windows after every transition, if the window is already
invisible, its surface can be directly destroyed. That would also solve
some cases in legacy transition which were handled by the workaround.

Fixes: 242285965
Test: WindowManagerServiceTests#testRelayoutExitingWindow

Change-Id: Ifa1fd03c968710af0350439ecc3563b32d218e26
parent 9de781b8
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