commit | 1e780ab02d7c6c1d9d55e6302f45a40402b1167d | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Thu Apr 14 16:10:46 2022 -0700 |
committer | Robert Carr <racarr@google.com> | Thu Apr 14 16:12:01 2022 -0700 |
tree | f4cb1fe2d2945939c91b6e3dd84fae64fc0dbd7a | |
parent | c98cb446c5893975727032edca0c63c8d30cc482 [diff] |
SurfaceView: Ensure position update listener sets at least once If we destroy and recreate a SurfaceView in the same frame its possible for positionChanged for the new surface to arrive before positionLost for the old surface. In this case we won't clear mRtLastReportedPosition, and so we won't set any position at all on the new surface. Bug: 229052731 Test: Existing tests pass Change-Id: I896496afa5b05848f96b20697d33911cae9639a7