mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fix typos in comments in ExploreMapFragment.kt
This commit is contained in:
parent
2056dfe4eb
commit
2987276a27
1 changed files with 2 additions and 2 deletions
|
|
@ -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<Int>()
|
||||
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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue