Setters (and GoogleMap.setInfoWindowAdapter
seems to be a setter) replace what was there before.
If you call onTap
in both classes, only the last InfoWindowAdapter
survives.
Instead you need to set only one InfoWindowAdapter
and decide for which Marker
you need to show info window based on getInfoContents
parameter (Marker arg0
).