mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-24 20:25:14 +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, *, *, *, *>) {
|
||||
val annotations = manager.getAnnotations()
|
||||
for (i in 0..annotations.size()) {
|
||||
var i = 0
|
||||
while (i < annotations.size()) {
|
||||
val key = annotations.keyAt(i)
|
||||
val value = annotations[key];
|
||||
val value = annotations[key]
|
||||
if (value is T) manager.delete(value)
|
||||
else i++
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue