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

Commit 4d2b2819 authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Initialize the animation leash with the current values" into pi-dev am: 9f54f109

am: d981ee95

Change-Id: I4458ef4aa86b96cd4ff6340bcbca39a1c5e20dbf
parents c95c2108 d981ee95
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -549,7 +549,12 @@ public class RecentsAnimationController implements DeathRecipient {
        @Override
        @Override
        public void startAnimation(SurfaceControl animationLeash, Transaction t,
        public void startAnimation(SurfaceControl animationLeash, Transaction t,
                OnAnimationFinishedCallback finishCallback) {
                OnAnimationFinishedCallback finishCallback) {
            // Restore z-layering, position and stack crop until client has a chance to modify it.
            t.setLayer(animationLeash, mTask.getPrefixOrderIndex());
            t.setPosition(animationLeash, mPosition.x, mPosition.y);
            t.setPosition(animationLeash, mPosition.x, mPosition.y);
            mTmpRect.set(mBounds);
            mTmpRect.offsetTo(0, 0);
            t.setWindowCrop(animationLeash, mTmpRect);
            mCapturedLeash = animationLeash;
            mCapturedLeash = animationLeash;
            mCapturedFinishCallback = finishCallback;
            mCapturedFinishCallback = finishCallback;
        }
        }