commit | 9421048a1f34aadb6b49ae602dd504322ad5243a | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Thu Sep 26 10:44:16 2019 -0700 |
committer | Robert Carr <racarr@google.com> | Thu Sep 26 10:44:16 2019 -0700 |
tree | d6194605b58adb00800ee1153e6ed17ed904f366 | |
parent | 7f9a4c9e8cc8d32a6128c9c55d576793a2f0ecf8 [diff] |
Continued SurfaceView lifetime fixes. More errors in the positionLost refactoring, it turns out positionLost can be called after we are fully detached and so ViewRootImpl can be null (which it can't be anywhere else in the SurfaceView code). Guard against this and guard against ViewRoot.mSurface being released since it seems this intermediate state would also be possible. Bug: 141474834 Test: Manual Change-Id: Id34e667bf319deb6e8b26346225b604a54dc342c