Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Marker click stops working #3573

Closed
Closed

Description

@tobrun

Sometimes a marker click event doesn't work properly.
I'm not able to reproduce this every time.
See video for a example:
https://youtu.be/cFTqyem8hSE

Activity

  1. added
    Android
    on Jan 15, 2016
  2. added this to the android-v3.1.0 milestone on Jan 15, 2016
  3. tobrun commented on Jan 18, 2016

    @tobrun
    MemberAuthor

    During debugging I'm currently noticing 2 things:

    • Callback doesn't reach the code of selectMarker
    • Callback reaches code in selectMarker but isn't showing an InfoWindow because View is null.

    The latter seems to be the problem mentioned in #3584

  4. tobrun commented on Jan 18, 2016

    @tobrun
    MemberAuthor

    The second problem is related to Activity recreation.
    The View is null because it was holding a View from a previous Activity instance.
    I fixed this by reinflating the layout and resetting the MapView instance.

  5. tobrun commented on Jan 18, 2016

    @tobrun
    MemberAuthor

    Testing to resolve latter also has resolved the first, I'm always able to open the InfoWindow 🚀

  6. added a commit that references this issue on Jan 18, 2016
  7. tobrun commented on Jan 18, 2016

    @tobrun
    MemberAuthor

    Landed with 74a9c50 on release branch of 3.1.0 in #3537.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Androidbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions