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

Commit

Permalink
Merge branch 'release-ios-v3.6.0-android-v5.1.0' into merge_mapbox_v5_1
Browse files Browse the repository at this point in the history
* release-ios-v3.6.0-android-v5.1.0:
  [android] - invible marker views performance fix mapbox#9419 (mapbox#9420)
  • Loading branch information
Tran Thuong Tien committed Jul 10, 2017
2 parents c8456d3 + eb7926d commit 54a0e65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public void updateMarkerViewsPosition() {
// ensure view is measured first
// #6805 invalidate marker views to ensure convertView width and height
// values are properly measured and up to date
if (marker.getWidth() == 0) {
if (marker.getWidth() == 0 && marker.isVisible()) {
convertView.getViewTreeObserver().addOnPreDrawListener(markerViewPreDrawObserver);
}
}
Expand Down

0 comments on commit 54a0e65

Please sign in to comment.