From 431f1d58a0abb69d54a0fac166d9820968c35bba Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 11 May 2018 13:23:49 +0300 Subject: [PATCH] fix #5006 --- OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java index 935cdea4e2..d859e8bd51 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java @@ -1113,7 +1113,10 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis float initialToolbarTransY = show ? -toolbar.getHeight() : 0; float finalToolbarTransY = show ? 0 : -toolbar.getHeight(); animators.add(ObjectAnimator.ofFloat(toolbar, View.TRANSLATION_Y, initialToolbarTransY, finalToolbarTransY)); - set.setDuration(300).playTogether(animators); + for (Animator animator : animators) { + animator.setDuration(300); + } + set.playTogether(animators); set.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationStart(Animator animation) {