Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - harden deselection mechanism for markers (#10403)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun authored Nov 10, 2017
1 parent b5140cb commit 199c0ca
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,14 @@ void deselectMarkers() {
}

for (Marker marker : selectedMarkers) {
if (marker.isInfoWindowShown()) {
marker.hideInfoWindow();
}
if (marker != null) {
if (marker.isInfoWindowShown()) {
marker.hideInfoWindow();
}

if (marker instanceof MarkerView) {
markerViewManager.deselect((MarkerView) marker, false);
if (marker instanceof MarkerView) {
markerViewManager.deselect((MarkerView) marker, false);
}
}
}

Expand Down

0 comments on commit 199c0ca

Please sign in to comment.