summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorlumark <lumark@google.com>2019-04-29 16:56:50 +0800
committerlumark <lumark@google.com>2019-05-06 20:56:24 +0800
commitf6f349449e61b7d1501365eec73ab3661e3bd966 (patch)
tree825fad411817a270966f5289efa8f2329d2060fe /tools/aapt2/java/JavaClassGenerator_test.cpp
parentccc7759b1c5da68224d3498a8496f96735a7f19a (diff)
Fix recent task screenshot may not cleanup in some cases
In previous implementation, TaskScreenshotAnimatable's surface relies on SurfaceAnimator#onAnimationLeashDestroyed callback. As the definition of this callback method is called when leash is being destroyed, and the surface was reparented back to the original parent, which may not be reliable for recent task screenshot use case because task screenhot surface may fail to reparent back if the parent is null, and the onAnimationLeashDestroyed callback won't be called. To fix this, we modify the reparent check to exclude parent surface check. This is because the screenshot animatable was returning null in Animatable.getParentSurface(), but we still need to invoke onAnimationLeashDestroyed. We also rename the callback to onAnimationLeashLost as it will also be called when the animation is transferred away to another animation, even though the leash didn't get destroyed. Also, modified TaskScreenshotAnimatable#getParentSurfaceControl to align Task's surface for surface hierachy correctness. Fix: 130606600 Test: atest RecentsAnimationControllerTest Test: atest SurfaceAnimatorTest Change-Id: I918554befe3982a3dc0a9949c6973042697bb24b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions