From 2987276a2744fd7d365a0900b0924391b66dad4c Mon Sep 17 00:00:00 2001 From: Nicolas Raoul Date: Sat, 11 Oct 2025 13:59:50 +0900 Subject: [PATCH] Fix typos in comments in ExploreMapFragment.kt --- .../fr/free/nrw/commons/explore/map/ExploreMapFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapFragment.kt b/app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapFragment.kt index dd3942019..0fc95dd17 100644 --- a/app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapFragment.kt +++ b/app/src/main/java/fr/free/nrw/commons/explore/map/ExploreMapFragment.kt @@ -963,14 +963,14 @@ class ExploreMapFragment : CommonsDaggerSupportFragment(), ExploreMapContract.Vi if (geoPoint != null) { binding!!.mapView.controller.setCenter(geoPoint) val overlays = binding!!.mapView.overlays - // colllects the indices of items to remove + // collects the indices of items to remove val indicesToRemove = mutableListOf() for (i in overlays.indices) { if (overlays[i] is Marker || overlays[i] is ScaleDiskOverlay) { indicesToRemove.add(i) } } - // removes tha items in reverse order to avoid index shifting + // removes the items in reverse order to avoid index shifting indicesToRemove.sortedDescending().forEach { index -> binding!!.mapView.overlays.removeAt(index) }