Skip to content

Commit

Permalink
Maps: Fix crash on race condition when unregistering bitmap descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Jul 13, 2023
1 parent f8c47b3 commit a3e0f17
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ object BitmapDescriptorFactoryImpl : IBitmapDescriptorFactoryDelegate.Stub() {

for (map in maps) {
map.getStyle {
try {
runOnMainLooper {
runOnMainLooper {
try {
it.removeImage(id)
} catch (e: Exception) {
Log.w(TAG, e)
}
} catch (e: Exception) {
Log.w(TAG, e)
}
}
}
Expand Down

0 comments on commit a3e0f17

Please sign in to comment.