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

Commit 9f54f109 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Initialize the animation leash with the current values" into pi-dev

parents b3ac00ea 65a0586b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -549,7 +549,12 @@ public class RecentsAnimationController implements DeathRecipient {
        @Override
        public void startAnimation(SurfaceControl animationLeash, Transaction t,
                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);
            mTmpRect.set(mBounds);
            mTmpRect.offsetTo(0, 0);
            t.setWindowCrop(animationLeash, mTmpRect);
            mCapturedLeash = animationLeash;
            mCapturedFinishCallback = finishCallback;
        }