mapbox / mapbox/mapbox-plugins-android

Android: SymbolManager.OnSymbolClickListener Not Called

Đang mở
#1,051 4 bình luận 2 reaction 1 người được giao Xem trên GitHub

@langsmith đang làm issue này rồi.

Từ ngày 30/9/2019.

annotation-plugin
Ngôn ngữ chính
Java
Star
242
Fork
116
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.