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

Commit b31c5521 authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

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

am: 3ad6de6e

Change-Id: I6f45f302b5278e62df6a85bf7b0d51c6e5ea9604
parents 0838228d 3ad6de6e
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;
    }