commit | ad30f958a62f17c7c39b6c02b8028198501a3807 | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Thu Mar 21 13:28:48 2019 -0700 |
committer | Robert Carr <racarr@google.com> | Tue Mar 26 08:29:35 2019 -0700 |
tree | 272483ebec2ba129608b1fbce888dfd5cc32b792 | |
parent | 53cc8bf12cd76bc2cb4734c3ff4df29eb4764dac [diff] |
Null AppWindowThumbnail SurfaceControl after releasing it. Otherwise SurfaceAnimator#reset may try and use it and throw an unhandled exception. It looks like this should be safe because we always null the SurfaceAnimator after releasing it's surface. The only other point holding on to the surface should be the animator, and the animator properly checks for null. Bug: 124877830 Test: AppWindowThumbnailTest Change-Id: I3841b27cc9e24ed24951df27b2b35a22bca70130