Merge pull request #5389 from osmandapp/Fix_5006

fix 5006
This commit is contained in:
Alexander Sytnyk 2018-05-11 16:07:53 +03:00 committed by GitHub
commit e18e501e24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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