Android: SymbolManager.OnSymbolClickListener Not Called

Aberta
#1,051 4 comentários 2 reações 1 responsável Ver no GitHub

@langsmith já está trabalhando nisso.

Desde 30/9/2019.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

annotation-plugin
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

Linguagem predominante
Java
Estrelas
242
Forks
116
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de mapbox/mapbox-plugins-android

Todas as issues de mapbox/mapbox-plugins-android

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.