diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarTranslationController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarTranslationController.java index 062b4ce52a..dd88a37ed6 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarTranslationController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarTranslationController.java @@ -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() {