Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba993781 authored by Robert Carr's avatar Robert Carr
Browse files

Reparent children when hiding preserved surface.

A recent change hides preserved surfaces immediately
when showing the new surface. We need to make sure to
reparent the children at this point like we do when we
destroy.

Bug: 79748420
Test: go/wm-smoke. Manual.
Change-Id: Ia5b68d595c4cdc1395ffcc69de7128c04f9e248d
parent 1b43af09
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1291,6 +1291,7 @@ class WindowStateAnimator {
        // if we are transparent.
        if (mPendingDestroySurface != null && mDestroyPreservedSurfaceUponRedraw) {
            mPendingDestroySurface.mSurfaceControl.hide();
            mPendingDestroySurface.reparentChildrenInTransaction(mSurfaceController);
        }

        return true;