Fix issue with scrim becoming invisible during animation
This patch fixes an issue with the scrim that would cause it to become invisible if re-shown while hiding. The onAnimationEnd event would remove the scrim from the tree when it was still needed. This is resolved by making the animator listener one that is cancel-aware. The scrim is not removed from the tree if the animation is canceled (if the animation should end early, the #end() method should be called instead). Bug: 865109 Change-Id: I5a83bc486a2798ddca8dca4fefc6a0a340fa1613 Reviewed-on: https://chromium-review.googlesource.com/1156482Reviewed-by:Theresa <twellington@chromium.org> Commit-Queue: Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#579431}
Showing
Please register or sign in to comment