Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit eb7926d

Browse files
LukasPaczosGuardiola31337
authored andcommitted
[android] - invible marker views performance fix #9419 (#9420)
1 parent d2d8a57 commit eb7926d

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
@@ -198,7 +198,7 @@ public void updateMarkerViewsPosition() {
198198
// ensure view is measured first
199199
// #6805 invalidate marker views to ensure convertView width and height
200200
// values are properly measured and up to date
201-
if (marker.getWidth() == 0) {
201+
if (marker.getWidth() == 0 && marker.isVisible()) {
202202
convertView.getViewTreeObserver().addOnPreDrawListener(markerViewPreDrawObserver);
203203
}
204204
}

0 commit comments

Comments
 (0)