Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix method name
  • Loading branch information
grzesiek2010 committed Jan 21, 2026
commit 1e2a50b950f5e6b48fcb8676dc474707a52e6c91
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ public void update() {
latLngs.add(marker.getPosition());
}
if (markers.isEmpty()) {
clearPolyline();
clearPolygon();
} else if (polygon == null) {
polygon = map.addPolygon(new PolygonOptions()
.strokeColor(polygonDescription.getStrokeColor())
Expand All @@ -1021,7 +1021,7 @@ public void update() {

@Override
public void dispose() {
clearPolyline();
clearPolygon();
for (Marker marker : markers) {
marker.remove();
}
Expand All @@ -1036,7 +1036,7 @@ public List<MapPoint> getPoints() {
return points;
}

private void clearPolyline() {
private void clearPolygon() {
if (polygon != null) {
polygon.remove();
polygon = null;
Expand Down