commit | 34486ad942d30a71042a2d29b1c20b4df40635af | [log] [tgz] |
---|---|---|
author | Vishnu Nair <vishnun@google.com> | Wed Jun 10 18:14:20 2020 -0700 |
committer | Vishnu Nair <vishnun@google.com> | Wed Jun 10 18:14:20 2020 -0700 |
tree | 91939e71dec46bfa8e5b9b167bec9e7ba4bdfcd7 | |
parent | 6a28d69c240ecfd6a74c680a84229af069d1cc94 [diff] |
Release SurfaceView surface if viewrootimpl surface is not valid When the window visiblity changes, SurfaceView gets notified to release its surface. If an app relayout happens before this notification, the ViewRootImpl surface will be null and the SurfaceView will not release it surface. Fixes: 158469622 Test: go/wm-smoke Test: repro steps from bug Test: play with SurfaceView apps Change-Id: Ia4d5948fd229b2c77700c91691b54561d84290bb