0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-24 20:25:14 +00:00
This commit is contained in:
Marvin W 2020-07-30 14:09:55 +02:00
parent ab69fa1ee0
commit 32ab82924e
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -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++
}
}