Skip to content
Commit fa8edf82 authored by Robert Carr's avatar Robert Carr
Browse files

Fix destruction of preserved surfaces for non app windows.

A new codepath (if (mChildrenDetached)) is allowing the IME surface
to become preserved. However WindowState#onAnimationDone will not
properly clean up preserved surfaces in the case of windows without
an App Token. For windows with an app token we follow the destroySurfaces
path which does the right thing via WindowState#destroySurface however
for the AppTokenless path we simply add to mDestroySurfaces. To fix this
we ensure when processing mDestroySurfaces we also process preserved surfaces.

Test: Manual. go/wm-smoke.
Bug: 78089772
Change-Id: Ia54e31c83a941ce6ae8ceb11672634c01a91e2e9
parent a194a6be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment