mapbox / mapbox/mapbox-maps-android
location.showAccuracyRing is not working after setting it false.
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
## Environment
- Android OS version: Android 14
- Devices affected: Eg. Samsung Galaxy s21, tested with Nexus 6 and Nexus 5 emulators also.
- Maps SDK Version: 11.1.0
## Observed behavior and steps to reproduce
Accuracy ring is visible, but after setting:
`mapView.location.showAccuracyRing = false `
and then:
`mapView.location.showAccuracyRing = true `
Accuracy ring is not visible.
## Expected behavior
Expected accuracy ring to be visible.
## Notes / preliminary analysis
the ring will be visible after onResume, so if I go to background and return back to the activity with mapview, the accuracy ring is visible again.
## Additional links and references
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.
Research direction
Start by reproducing the issue on Android 14 with Maps SDK 11.1.0 using the documented mapView.location.showAccuracyRing toggle sequence. Trace the location component's visibility update and lifecycle behavior, then verify that setting the property false and true makes the accuracy ring visible without requiring onResume.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100