Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Android: SymbolManager.OnSymbolClickListener Not Called

オープン
#1,051 コメント 4 件 リアクション 2 件 担当者 1 名 GitHub で見る

@langsmith がすでに取り組んでいます。

2019年9月30日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
Java
スター
242
フォーク
116
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mapbox/mapbox-plugins-android のほかの issue

mapbox/mapbox-plugins-android の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。