mapbox / mapbox/mapbox-maps-android

location.showAccuracyRing is not working after setting it false.

Open
#2,287 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.