mapbox / mapbox/mapbox-plugins-android

Android: SymbolManager.OnSymbolClickListener Not Called

Abierto
#1,051 4 comentarios 2 reacciones 1 asignado Ver en GitHub

@langsmith ya está trabajando en esto.

Desde el 30/9/2019.

annotation-plugin
Lenguaje dominante
Java
Estrellas
242
Forks
116
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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

1. Add Symbols to a map using the `symbolManager.update(Symbol symbol)` function, and observing clicks on these symbols via `symbolManager.addClickListener()`.
2. Verify taps on the Symbols trigger the clickListener
3. 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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.