mapbox / mapbox/mapbox-plugins-android
Android: SymbolManager.OnSymbolClickListener Not Called
@langsmith ci sta già lavorando.
Dal 30/9/2019.
- Lingua principale
- Java
- Stelle
- 242
- Fork
- 116
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Description
I have a mapView contained in a fragment, and am adding Symbols to the map and observing clicks on them. However after backgrounding/foregrounding the app, or navigating to another activity and back to the one containing the map, the OnSymbolClickListener is no longer receiving symbol click events.
Steps to reproduce
- Add Symbols to a map using the
symbolManager.update(Symbol symbol)function, and observing clicks on these symbols viasymbolManager.addClickListener(). - Verify taps on the Symbols trigger the clickListener
- Background/Foreground the app
Expected behavior
The click listener should still fire when symbols are tapped
Actual behavior
The click listener is no longer fired when symbols are tapped
While debugging, I was able to verify that the map's SymbolManager still had a registered onClickListener after foregrounding the app, and that the Symbols themselves were still present.
Configuration
Android versions: Android 8
Device models: Samsung Galaxy S8
Mapbox SDK versions:
mapbox-android-sdk:7.3.1
mapbox-android-plugin-annotation-v7:0.5.0
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.