mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user