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

Commit bb0b74d3 authored by Vinit Nayak's avatar Vinit Nayak Committed by Automerger Merge Worker
Browse files

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

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

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



Change-Id: Ibee5fabc97991e30f45a61ba386bf01a0008b1ae
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e47016f9 4244c531
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -595,7 +595,7 @@ class ScreenRotationAnimation {
        }

        private SurfaceAnimator startDisplayRotation() {
            return startAnimation(initializeBuilder()
            SurfaceAnimator animator = startAnimation(initializeBuilder()
                            .setAnimationLeashParent(mDisplayContent.getSurfaceControl())
                            .setSurfaceControl(mDisplayContent.getWindowingLayer())
                            .setParentSurfaceControl(mDisplayContent.getSurfaceControl())
@@ -604,6 +604,13 @@ 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() {