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

Commit e9159b45 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Revert "Crop windowing layer to that of display size in screen rotation animation"

This reverts commit 2ebf2466.

Reason for revert: b/239424216

Change-Id: I38660e65b42b62cb5203d2e6b69d914d4251a6fa
parent 2ebf2466
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -600,7 +600,7 @@ class ScreenRotationAnimation {
        }

        private SurfaceAnimator startDisplayRotation() {
            SurfaceAnimator animator = startAnimation(initializeBuilder()
            return startAnimation(initializeBuilder()
                            .setAnimationLeashParent(mDisplayContent.getSurfaceControl())
                            .setSurfaceControl(mDisplayContent.getWindowingLayer())
                            .setParentSurfaceControl(mDisplayContent.getSurfaceControl())
@@ -609,13 +609,6 @@ class ScreenRotationAnimation {
                            .build(),
                    createWindowAnimationSpec(mRotateEnterAnimation),
                    this::onAnimationEnd);

            // Crop the animation leash to avoid extended wallpaper from showing over
            // mBackColorSurface
            Rect displayBounds = mDisplayContent.getBounds();
            mDisplayContent.getPendingTransaction()
                    .setWindowCrop(animator.mLeash, displayBounds.width(), displayBounds.height());
            return animator;
        }

        private SurfaceAnimator startScreenshotAlphaAnimation() {