diff --git a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java index 7ed10c79f2..8dcd5b452e 100644 --- a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java +++ b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java @@ -503,10 +503,15 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable } } if (!standardFilters.isEmpty()) { - PoiUIFilter standardFiltersCombined = new PoiUIFilter( - null, app, app.getPoiFilters().getFiltersName(standardFilters)); + PoiUIFilter standardFiltersCombined = null; for (PoiUIFilter f : standardFilters) { - standardFiltersCombined.combineWithPoiFilter(f); + if (standardFiltersCombined == null) { + standardFiltersCombined = f; + f.filterId = PoiUIFilter.STD_PREFIX + "combined"; + f.name = app.getPoiFilters().getFiltersName(standardFilters); + } else { + standardFiltersCombined.combineWithPoiFilter(f); + } } filters.removeAll(standardFilters); filters.add(standardFiltersCombined);