mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

Manually advancing the leg progress does not advance it

Open kevin-klein opened this issue 1 year ago • 0 comments

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.

kevin-klein avatar Jun 11 '24 12:06 kevin-klein