Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Save location animation timestamp only when fed #15265

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

LukasPaczos
Copy link
Contributor

Closes #15246.

When all location layer animations were reset, due to the mode change, we were recalculating the time of the animation, while we should be taking the remaining duration. Frequent recalculation requests resulted in a really short animation duration. The recalculation should be limited to a moment when an actual location update is fed to the animator coordinator.

When all location layer animations were reset, due to the mode change, we were recalculating the time of the animation, while we should be taking the remaining duration. Frequent recalculation requests resulted in a really short animation duration.
@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Jul 31, 2019
@LukasPaczos LukasPaczos requested a review from tobrun July 31, 2019 09:05
@tobrun tobrun added the needs changelog Indicates PR needs a changelog entry prior to merging. label Jul 31, 2019
@LukasPaczos
Copy link
Contributor Author

@Guardiola31337 would you be able to retest the 8.3.0-SNAPSHOT when this lands?

@LukasPaczos LukasPaczos merged commit 275d8ff into master Jul 31, 2019
@LukasPaczos LukasPaczos deleted the lp-location-animation-15246 branch July 31, 2019 10:07
@Guardiola31337
Copy link
Contributor

@LukasPaczos

would you be able to retest the 8.3.0-SNAPSHOT when this lands?

Confirmed that now puck animation is smoother 🚀

Let us know when you cut a release patch including OP so we can bump the Maps SDK version and merge mapbox/mapbox-navigation-android#2013

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MapboxMap#animateCamera breaks location puck animation
4 participants