Merge "Fix spring not springing when unstashing." into tm-qpr-dev am: cbe578b269 am: 0f43611645

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22202345

Change-Id: Ie8eacb26ccf2234b52ac36cbf81e048e65fa5a49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jon Miranda
2023-03-23 18:22:23 +00:00
committed by Automerger Merge Worker
3 changed files with 33 additions and 5 deletions
@@ -132,6 +132,15 @@ public class AnimatedFloat {
return isAnimating() && mEndValue != null && mEndValue == endValue;
}
/**
* Returns the remaining time of the existing animation (if any).
*/
public long getRemainingTime() {
return isAnimating() && mValueAnimator.isRunning()
? Math.max(0, mValueAnimator.getDuration() - mValueAnimator.getCurrentPlayTime())
: 0;
}
/**
* Returns whether we are currently not animating, and the animation's value matches the given.
*/