From e4ce3662388ec4b78508681c145aa9d538a82a30 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Wed, 6 Feb 2019 15:16:24 -0500 Subject: [PATCH] Fix issue where animation progress would be overridden Change-Id: I7ce6452a5cf412b74b404e8c3400b60660998f22 Fixes: 124001115 Test: visual --- .../src/com/android/quickstep/util/ClipAnimationHelper.java | 1 - .../src/com/android/quickstep/views/LauncherRecentsView.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java b/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java index 0dee203618..5515e9788b 100644 --- a/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java +++ b/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java @@ -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; } diff --git a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java index ff85003ba3..5c8f53c9f8 100644 --- a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java +++ b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java @@ -222,7 +222,8 @@ public class LauncherRecentsView extends RecentsView { 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,