mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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) {
|
if (geoPoint != null) {
|
||||||
binding!!.mapView.controller.setCenter(geoPoint)
|
binding!!.mapView.controller.setCenter(geoPoint)
|
||||||
val overlays = binding!!.mapView.overlays
|
val overlays = binding!!.mapView.overlays
|
||||||
// colllects the indices of items to remove
|
// collects the indices of items to remove
|
||||||
val indicesToRemove = mutableListOf<Int>()
|
val indicesToRemove = mutableListOf<Int>()
|
||||||
for (i in overlays.indices) {
|
for (i in overlays.indices) {
|
||||||
if (overlays[i] is Marker || overlays[i] is ScaleDiskOverlay) {
|
if (overlays[i] is Marker || overlays[i] is ScaleDiskOverlay) {
|
||||||
indicesToRemove.add(i)
|
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 ->
|
indicesToRemove.sortedDescending().forEach { index ->
|
||||||
binding!!.mapView.overlays.removeAt(index)
|
binding!!.mapView.overlays.removeAt(index)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue