diff --git a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java index 149d4efef3..ce0d880e9d 100644 --- a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java +++ b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java @@ -152,10 +152,6 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable return savedFilterByName; } - public List getCurrentSearchResult() { - return currentSearchResult; - } - public List searchAgain(double lat, double lon) { List amenityList ; diff --git a/OsmAnd/src/net/osmand/plus/poi/SearchByNameFilter.java b/OsmAnd/src/net/osmand/plus/poi/SearchByNameFilter.java index 7c66da959b..5d103313ae 100644 --- a/OsmAnd/src/net/osmand/plus/poi/SearchByNameFilter.java +++ b/OsmAnd/src/net/osmand/plus/poi/SearchByNameFilter.java @@ -47,7 +47,8 @@ public class SearchByNameFilter extends PoiUIFilter { elimit = true; } if (matcher.publish(object)) { - currentSearchResult.add(object); + // Causes concurrent modification exception (below) +// currentSearchResult.add(object); return true; } return false;