From 42ea7d1d7e6e8ae574ccc4dcfe0aff5099edc5a4 Mon Sep 17 00:00:00 2001 From: Skalii Date: Sun, 18 Apr 2021 14:28:53 +0300 Subject: [PATCH] small fix --- .../plus/settings/backend/backup/PoiUiFiltersSettingsItem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);