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

Commit

Permalink
[android] - invible marker views performance fix #9419 (#9420)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos authored and tobrun committed Jul 5, 2017
1 parent 87081b8 commit 9ab04a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,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 9ab04a2

Please sign in to comment.