Fix crash when setting Google Map markers

pull/1136/head
Alex Baker 5 years ago
parent 9a6b369c2a
commit 2c73535278

@ -53,6 +53,9 @@ class GoogleMapFragment(private val context: Context) : MapFragment, OnMapReadyC
}
override fun setMarkers(places: List<Place>) {
if (map == null) {
return
}
for (marker in markers) {
marker.remove()
}

Loading…
Cancel
Save