Merge "Fix issue where two translation animations clobber each other." into tm-qpr-dev

This commit is contained in:
Jon Miranda
2023-03-21 20:58:23 +00:00
committed by Android (Google) Code Review

View File

@@ -138,7 +138,7 @@ public class TaskbarTranslationController implements TaskbarControllers.Loggable
* Returns an animation to reset the taskbar translation to {@code 0}.
*/
public ObjectAnimator createAnimToResetTranslation(long duration) {
ObjectAnimator animator = ObjectAnimator.ofFloat(mTranslationYForSwipe, VALUE, 0);
ObjectAnimator animator = mTranslationYForSwipe.animateToValue(0);
animator.setInterpolator(Interpolators.LINEAR);
animator.setDuration(duration);
animator.addListener(new AnimatorListenerAdapter() {