commit | 412f356ec0d7aa00f38bbc13dd80ae5acca4f928 | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Thu Apr 11 13:01:31 2019 -0700 |
committer | Robert Carr <racarr@google.com> | Thu Apr 11 13:12:21 2019 -0700 |
tree | 49ede02f68112992e6ab745add53165c4f4b4612 | |
parent | 8e3183e12657e05fc799a62b51828c20e43c0b43 [diff] |
More SurfaceAnimator lifetime fixes. 1. The last fix to Dimmer was insufficient, the mDimLayer in the context of DimState() is not the mDimLayer that we return from DimAnimatable#getSurfaceControl. Here we null the correct layer. 2. This bug is hard to fix without repro so we add some isValid checks preventing further crashes at the cost of a few cycles and a code wart. Test: Existing tests pass Bug: 130315011 Bug: 130364451 Change-Id: I3d4d3e0e7110f943e5a2614e07a1f4ae85c2b3da