Fix bug with map markers coloring
This commit is contained in:
parent
1cad7c180c
commit
c09962c53b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue