diff --git a/OsmAnd/src/net/osmand/plus/settings/backend/backup/PoiUiFiltersSettingsItem.java b/OsmAnd/src/net/osmand/plus/settings/backend/backup/PoiUiFiltersSettingsItem.java index 3d4d1ba2c8..e0a0ced9a8 100644 --- a/OsmAnd/src/net/osmand/plus/settings/backend/backup/PoiUiFiltersSettingsItem.java +++ b/OsmAnd/src/net/osmand/plus/settings/backend/backup/PoiUiFiltersSettingsItem.java @@ -155,7 +155,8 @@ public class PoiUiFiltersSettingsItem extends CollectionSettingsItem poiTypes = acceptedTypes.get(category); if (poiTypes == null) { poiTypes = new LinkedHashSet<>(); - for (PoiType poiType : category.getPoiTypes()) { + List types = category.getPoiTypes(); + for (PoiType poiType : types) { poiTypes.add(poiType.getKeyName()); } acceptedTypes.put(category, poiTypes);