mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Merge "Fix issue where two translation animations clobber each other." into tm-qpr-dev
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