commit | eb629d7ed27112eca0b3e55ec08119773f9e34ea | [log] [tgz] |
---|---|---|
author | Garfield Tan <xutan@google.com> | Wed Dec 19 15:17:29 2018 -0800 |
committer | Garfield Tan <xutan@google.com> | Wed Dec 19 15:17:29 2018 -0800 |
tree | f4f4af5c95f3ed53cb4817021e7f527acd891f4f | |
parent | a034692c8174a67c96b7e677bb08a5390046034a [diff] |
Cancel all pending anims when tearing down. When I was trying to reproduce a TH failure in DisplayContentTests I ran into a different failure that a SurfaceControl (an anim leash) is used after being destroyed. Therefore cancel all pending anims before destroying all SurfaceControls in WMSRule to avoid that. Bug: None Test: Tests pass. Change-Id: Iec978605fa5a8d7dbb0f8afed7cd2e6463454d04