Skip to content

Commit bacdc9b

Browse files
authored
fix: fixed item updated (#1461)
* fix: fixed item updated * fix: fixed item updated callback * Update ClusterRendererMultipleItems.java
1 parent 8a431e8 commit bacdc9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/main/java/com/google/maps/android/clustering/view/ClusterRendererMultipleItems.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,9 @@ private void perform(MarkerModifier markerModifier) {
11141114
} else {
11151115
markerWithPosition = new MarkerWithPosition<>(marker, item);
11161116
markerModifier.animate(markerWithPosition, marker.getPosition(), item.getPosition());
1117+
if (!markerWithPosition.position.equals(item.getPosition())) {
1118+
onClusterItemUpdated(item, marker);
1119+
}
11171120
}
11181121
onClusterItemRendered(item, marker);
11191122
newMarkers.add(markerWithPosition);

0 commit comments

Comments
 (0)