TradeMe / MapMe

The Android maps adapter
MIT License
841 stars 75 forks source link

Markers don't attach to map in special case #26

Open avegrv opened 5 years ago

avegrv commented 5 years ago

If I pass to the method MapMeAdapter#attach blank view, that doesn't attached to a window - at this case I don't have any markers on map.

It's seem to be problem at method MapMeAdapter#triggerUpdateProcessor. According to the documentation, the post(...) should be called from non-UI threads only when the View is attached to a window. My view doesn't attached to a window.

Why a need to attach mapView to adapter? I don't use MapView, I use SupportMapFragment to represent map.