Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually advancing the leg progress does not advance it #7826

Open
kevin-klein opened this issue Jun 11, 2024 · 0 comments
Open

Manually advancing the leg progress does not advance it #7826

kevin-klein opened this issue Jun 11, 2024 · 0 comments

Comments

@kevin-klein
Copy link

kevin-klein commented Jun 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant