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

Commit 217948d8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "Revert "Crop windowing layer to that of display size in screen rotation animation"" into tm-qpr-dev am: bc3886a9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19322705



Change-Id: I1df9e7a8c1955371dd2e28aea73e5a66b56400fb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9d1e3904 bc3886a9
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() {