Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Commit 54a0e65

Browse files
author
Tran Thuong Tien
committed
Merge branch 'release-ios-v3.6.0-android-v5.1.0' into merge_mapbox_v5_1
* release-ios-v3.6.0-android-v5.1.0: [android] - invible marker views performance fix mapbox#9419 (mapbox#9420)
2 parents c8456d3 + eb7926d commit 54a0e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerViewManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void updateMarkerViewsPosition() {
214214
// ensure view is measured first
215215
// #6805 invalidate marker views to ensure convertView width and height
216216
// values are properly measured and up to date
217-
if (marker.getWidth() == 0) {
217+
if (marker.getWidth() == 0 && marker.isVisible()) {
218218
convertView.getViewTreeObserver().addOnPreDrawListener(markerViewPreDrawObserver);
219219
}
220220
}

0 commit comments

Comments
 (0)