This commit is contained in:
Dmitriy Prodchenko 2018-05-02 17:44:36 +03:00
commit e69bdef140
2 changed files with 3 additions and 2 deletions

View file

@ -544,7 +544,8 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
int r = getDefaultRadiusPoi(tb);
int ex = (int) point.x;
int ey = (int) point.y;
for (SelectedGpxFile g : selectedGpxHelper.getSelectedGPXFiles()) {
List<SelectedGpxFile> selectedGpxFiles = new ArrayList<>(selectedGpxHelper.getSelectedGPXFiles());
for (SelectedGpxFile g : selectedGpxFiles) {
List<WptPt> pts = getListStarPoints(g);
// int fcolor = g.getColor() == 0 ? clr : g.getColor();
for (WptPt n : pts) {

View file

@ -414,7 +414,7 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen
String current = aggregatedPartOfArrayOrig[0];
sb.append("<div class=\"nav-bar"+nightModeClass+"\" onClick=\"showNavigation()\">");
if (aggregatedPartOfArrayOrig.length > 0) {
for (int i = aggregatedPartOfArrayOrig.length - 1; i >= 0 ; i--) {
for (int i = 0; i < aggregatedPartOfArrayOrig.length ; i++) {
if (i > 1) {
sb.append("").append(aggregatedPartOfArrayOrig[i]);
} else {