Merge "Fix issue where two translation animations clobber each other." into tm-qpr-dev am: 56e660c6f3 am: 43102d323b am: 784a6466de

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

Change-Id: I943bb627bbafd1c2410cade6c0bd22030e1ecd1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jon Miranda
2023-03-21 23:02:03 +00:00
committed by Automerger Merge Worker
@@ -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() {