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

Commit 3ad6de6e authored by android-build-team Robot's avatar android-build-team Robot Committed by Android (Google) Code Review
Browse files

Merge "WindowStateAnimator: Hide preserved surface when showing new Surface" into pi-dev

parents 724990d5 849d2935
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1287,6 +1287,12 @@ class WindowStateAnimator {
        if (!shown)
            return false;

        // If we had a preserved surface it's no longer needed, and it may be harmful
        // if we are transparent.
        if (mPendingDestroySurface != null && mDestroyPreservedSurfaceUponRedraw) {
            mPendingDestroySurface.mSurfaceControl.hide();
        }

        return true;
    }