Fix concurrent modification
This commit is contained in:
parent
9142ad05ff
commit
dbc2ee0f6a
2 changed files with 2 additions and 5 deletions
|
@ -152,10 +152,6 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
|
|||
return savedFilterByName;
|
||||
}
|
||||
|
||||
public List<Amenity> getCurrentSearchResult() {
|
||||
return currentSearchResult;
|
||||
}
|
||||
|
||||
|
||||
public List<Amenity> searchAgain(double lat, double lon) {
|
||||
List<Amenity> amenityList ;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue