summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-08-12 23:17:11 -0600
committer Riddle Hsu <riddlehsu@google.com> 2022-08-16 06:46:22 +0000
commitc9ac64da54ce23cfc44e779cf63f71b0266d150c (patch)
treeed0efdd363858e429b4c728166112de8b67ffff5 /libs/input/SpriteController.cpp
parent9de781b8a4549ed0a2477959bf8c60ae47325a74 (diff)
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
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions