Skip to content

Commit

Permalink
fix: fixed item updated callback
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoso committed Feb 6, 2025
1 parent 8a91144 commit bece12f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import android.os.Looper;
import android.os.Message;
import android.os.MessageQueue;
import android.util.Log;
import android.util.SparseArray;
import android.view.ViewGroup;
import android.view.animation.AccelerateDecelerateInterpolator;
Expand Down Expand Up @@ -1114,7 +1115,9 @@ private void perform(MarkerModifier markerModifier) {
} else {
markerWithPosition = new MarkerWithPosition<>(marker, item);
markerModifier.animate(markerWithPosition, marker.getPosition(), item.getPosition());
onClusterItemUpdated(item, marker);
if (!markerWithPosition.position.equals(item.getPosition())) {
onClusterItemUpdated(item, marker);
}
}
onClusterItemRendered(item, marker);
newMarkers.add(markerWithPosition);
Expand Down

0 comments on commit bece12f

Please sign in to comment.