Fix bug with map markers coloring

This commit is contained in:
vshcherb 2016-11-03 21:12:24 +02:00 committed by GitHub
parent 1cad7c180c
commit c09962c53b

View file

@ -343,7 +343,7 @@ public class MapMarkersHelper {
} }
if (colorIndex == -1) { if (colorIndex == -1) {
if (sortedMapMarkers.size() > 0) { if (sortedMapMarkers.size() > 0) {
colorIndex = (sortedMapMarkers.get(0).colorIndex + 1) % MAP_MARKERS_COLORS_COUNT; colorIndex = (sortedMapMarkers.get(sortedMapMarkers.size() - 1).colorIndex + 1) % MAP_MARKERS_COLORS_COUNT;
} else { } else {
colorIndex = 0; colorIndex = 0;
} }