Fix dashboard visibility after animation

This commit is contained in:
Chumva 2019-11-08 11:03:20 +02:00
parent 41051aa76d
commit f588ee7016

View file

@ -913,7 +913,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, IRouteInfo
Animator circleAnimator = ViewAnimationUtils.createCircularReveal(content, centerX, centerY, initialRadius, finalRadius); Animator circleAnimator = ViewAnimationUtils.createCircularReveal(content, centerX, centerY, initialRadius, finalRadius);
animators.add(circleAnimator); animators.add(circleAnimator);
} }
float initialValueScale = show ? 0f : 1f; final float initialValueScale = show ? 0f : 1f;
float finalValueScale = show ? 1f : 0f; float finalValueScale = show ? 1f : 0f;
animators.add(ObjectAnimator.ofFloat(content, View.SCALE_X, initialValueScale, finalValueScale)); animators.add(ObjectAnimator.ofFloat(content, View.SCALE_X, initialValueScale, finalValueScale));
animators.add(ObjectAnimator.ofFloat(content, View.SCALE_Y, initialValueScale, finalValueScale)); animators.add(ObjectAnimator.ofFloat(content, View.SCALE_Y, initialValueScale, finalValueScale));
@ -946,6 +946,8 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, IRouteInfo
content.setTranslationX(0); content.setTranslationX(0);
content.setTranslationY(0); content.setTranslationY(0);
toolbar.setTranslationY(0); toolbar.setTranslationY(0);
content.setScaleX(initialValueScale);
content.setScaleY(initialValueScale);
} }
} }
}); });