Compare commits

...

1 commit
master ... r1.6

Author SHA1 Message Date
vshcherb
f261ae8469 Fix exception of selecting sightseeing layer 2013-11-24 18:18:01 +01:00

View file

@ -589,7 +589,7 @@ public class MapActivityLayers {
String filterId; String filterId;
if (which == 0) { if (which == 0) {
filterId = PoiFiltersHelper.getOsmDefinedFilterId(null); filterId = PoiFiltersHelper.getOsmDefinedFilterId(null);
} else if (which <= userDefined.size()) { } else if (which <= userDefined.size() + 1) {
filterId = userDefined.get(which - 2).getFilterId(); filterId = userDefined.get(which - 2).getFilterId();
} else { } else {
filterId = PoiFiltersHelper.getOsmDefinedFilterId(AmenityType.values()[which - userDefined.size() - 2]); filterId = PoiFiltersHelper.getOsmDefinedFilterId(AmenityType.values()[which - userDefined.size() - 2]);