commit | 4a2d3741358cd4efa6373b43c208de5236441120 | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Mon Feb 11 12:15:38 2019 -0800 |
committer | Rob Carr <racarr@google.com> | Mon Feb 11 23:03:02 2019 +0000 |
tree | 15f1efe8a0f122ebdebc10c16324835f8600b518 | |
parent | 38eded086355c37ba6aead0697967f7dbf7a92f9 [diff] |
Postpone destroying leash until after cancel callback. Currently we may end up releasing the leash (via Transaction#remove) before setting mCancelled on the animation. This means if another frame executes we could attempt to use a released surface. Here we cancel before releasing the surface, careful not to disturb other logic. Bug: 124112773 Test: Fixes them allegedly Change-Id: I920a1c8f891a5cdc53b1d55298f661abc91b3259