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

Make sure that animation leash is removed with window container

Unlike ActivityRecord and WindowState, the general window container
doesn't clean up its animation for removal. So if the container is
removed while animating, the animation leash surface may be leaked.

One case is that when rotating display with a short life window such
as Toast, the the leash created by FadeRotationAnimationController
may remain on DisplayArea (the parent of WindowToken).

Bug: 212483446
Test: atest WindowContainerTests#testRemoveImmediatelyClearsLeash
Change-Id: I1b4833b14a3c6c4ea1338156f5bfd7bf475645d1
parent 1b31769f
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