You should be doing Marker.showInfoWindow()
on marker that is currently showing info window when you receive model update.
So you need to do 3 things:
- create model and not put all the downloading into
InfoWindowAdapter
- save reference to Marker (call it
markerShowingInfoWindow
)
fromgetInfoContents(Marker marker)
- when model notifies you of download complete call
if (markerShowingInfoWindow != null && markerShowingInfoWindow.isInfoWindowShown()) {
markerShowingInfoWindow.showInfoWindow();
}