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

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

Change-Id: I421382612f9175d45a059519085f29d45acc7d18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jon Miranda
2023-03-21 21:43:49 +00:00
committed by Automerger Merge Worker

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() {