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

Commit 1ea481ad authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Fix issue where animation progress would be overridden

Change-Id: I7ce6452a5cf412b74b404e8c3400b60660998f22
Fixes: 124001115
Test: visual
parent 2fe83ec9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -390,7 +390,6 @@ public class ClipAnimationHelper {
        public TransformParams setCurrentRectAndTargetAlpha(RectF currentRect, float targetAlpha) {
            this.currentRect = currentRect;
            this.targetAlpha = targetAlpha;
            this.progress = 1;
            return this;
        }

+2 −1
Original line number Diff line number Diff line
@@ -222,7 +222,8 @@ public class LauncherRecentsView extends RecentsView<Launcher> {
                mTempRect.top -= offsetY;
            }
            mTempRectF.set(mTempRect);
            mTransformParams.setCurrentRectAndTargetAlpha(mTempRectF, taskView.getAlpha())
            mTransformParams.setProgress(1f)
                    .setCurrentRectAndTargetAlpha(mTempRectF, taskView.getAlpha())
                    .setSyncTransactionApplier(mSyncTransactionApplier);
            if (mRecentsAnimationWrapper.targetSet != null) {
                mClipAnimationHelper.applyTransform(mRecentsAnimationWrapper.targetSet,