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

Commit 3b155268 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"...

Merge "WindowStateAnimator: Hide preserved surface when showing new Surface" into pi-dev am: 3ad6de6e
am: b31c5521

Change-Id: I72cd3db803da1129a1c6a431fc7cd399893d7b90
parents 5ab52b57 b31c5521
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;
    }