Skip to content

Commit

Permalink
fix whatsapp map is blurry
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 authored and mar-v-in committed Aug 4, 2024
1 parent 75fdf64 commit ebe425f
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -775,15 +775,16 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
}

val runCallbacks = {
synchronized(mapLock) {
initializedCallbackList.forEach {
try {
it.onMapReady(this)
} catch (e: Exception) {
Log.w(TAG, e)
}
}.also {
initializedCallbackList.clear()
val callbacks = synchronized(mapLock) {
ArrayList(initializedCallbackList)
.also { initializedCallbackList.clear() }
}

callbacks.forEach {
try {
it.onMapReady(this)
} catch (e: Exception) {
Log.w(TAG, e)
}
}
}
Expand Down

0 comments on commit ebe425f

Please sign in to comment.