diff options
author | Tobrun <tobrun@mapbox.com> | 2016-01-18 09:10:17 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2016-01-18 09:10:17 +0100 |
commit | 74a9c505f9e390ec25fc16904c432dd19cc900f2 (patch) | |
tree | b5fd4aafc3bb35adc0a8c01a41afcf4d6540484a /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java | |
parent | 2dae355cbd7097cb8adbc34e2cdf51db789b6739 (diff) | |
download | qtlocation-mapboxgl-74a9c505f9e390ec25fc16904c432dd19cc900f2.tar.gz |
[android] #3573 - Marker clicks stop working after orientation change
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java index 9482afaa26..8b4b66a2a3 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java @@ -93,17 +93,17 @@ public final class Marker extends Annotation { View content = infoWindowAdapter.getInfoWindow(this); if (content != null) { infoWindow = new InfoWindow(content, getMapView()); - showInfoWindow(infoWindow); + showInfoWindow(infoWindow, mapView); return infoWindow; } } getInfoWindow().adaptDefaultMarker(this, mapView); - return showInfoWindow(getInfoWindow()); + return showInfoWindow(getInfoWindow(), mapView); } - private InfoWindow showInfoWindow(InfoWindow iw) { - iw.open(this, getPosition(), 0, topOffsetPixels); + private InfoWindow showInfoWindow(InfoWindow iw, MapView mapView) { + iw.open(mapView, this, getPosition(), 0, topOffsetPixels); infoWindowShown = true; return iw; } |