mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-28 14:13:00 +00:00
Fix for #1106
This commit is contained in:
parent
ab69fa1ee0
commit
32ab82924e
1 changed files with 4 additions and 2 deletions
|
@ -312,10 +312,12 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
|
||||||
|
|
||||||
fun <T : Annotation<*>> clear(manager: AnnotationManager<*, T, *, *, *, *>) {
|
fun <T : Annotation<*>> clear(manager: AnnotationManager<*, T, *, *, *, *>) {
|
||||||
val annotations = manager.getAnnotations()
|
val annotations = manager.getAnnotations()
|
||||||
for (i in 0..annotations.size()) {
|
var i = 0
|
||||||
|
while (i < annotations.size()) {
|
||||||
val key = annotations.keyAt(i)
|
val key = annotations.keyAt(i)
|
||||||
val value = annotations[key];
|
val value = annotations[key]
|
||||||
if (value is T) manager.delete(value)
|
if (value is T) manager.delete(value)
|
||||||
|
else i++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue