Manually advancing the leg progress does not advance it
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, kotlin
- Domain
- mobile-dev
Research direction
Start by reproducing the report with the provided Kotlin snippet on Android API 21 using Mapbox Navigation SDK 2.19.1. Trace how setNavigationRoutes handles the supplied route list and leg index, then verify that changing the index advances currentLegProgress and the driver's instruction.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mapbox-navigation-android
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
mapbox/mapbox-navigation-android#7852 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/mapbox-navigation-android#7966 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapbox/mapbox-navigation-android#7965 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
mapbox/mapbox-navigation-android#7955 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mapbox/mapbox-navigation-android#7948 ·
All issues in mapbox/mapbox-navigation-android
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Issue: Bug
Difficulty 1/5 Under an hour Newbie friendliness 91/100
OpenAPITools/openapi-generator#24978 ·
-
helsemelding-json-schema json-schema-core
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
contributor: external needs review
Difficulty 2/5 1-3 hours Newbie friendliness 82/100