mapbox / mapbox/mapbox-plugins-android

Android: SymbolManager.OnSymbolClickListener Not Called

Ouverte
#1,051 4 commentaires 2 réactions 1 personne assignée Voir sur GitHub

@langsmith y travaille déjà.

Depuis le 30/9/2019.

annotation-plugin
Langage dominant
Java
Étoiles
242
Forks
116
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.