mapbox-navigation-android
mapbox-navigation-android copied to clipboard
Manually advancing the leg progress does not advance it
Android API: 21 Mapbox Navigation SDK version: 2.19.1
Steps to trigger behavior
val currentIndex = routeProgress?.currentLegProgress?.legIndex
navigation?.setNavigationRoutes(
listOf(currentRoute), currentIndex?.plus(1) ?: 0
)
This has been confirmed via a debug point that none of the values are null and setNavigationRoutes is called with the first parameter being a list that only contains the current route and the second parameter being 1 with currentIndex being 0.
Expected behavior
The navigation should advance to the next leg.
Actual behavior
It stays at the same leg - no changes to the current instruction for the driver.