small fix

This commit is contained in:
Skalii 2021-04-18 14:28:53 +03:00
parent e6ad6f3c38
commit 42ea7d1d7e

View file

@ -155,7 +155,8 @@ public class PoiUiFiltersSettingsItem extends CollectionSettingsItem<PoiUIFilter
LinkedHashSet<String> poiTypes = acceptedTypes.get(category);
if (poiTypes == null) {
poiTypes = new LinkedHashSet<>();
for (PoiType poiType : category.getPoiTypes()) {
List<PoiType> types = category.getPoiTypes();
for (PoiType poiType : types) {
poiTypes.add(poiType.getKeyName());
}
acceptedTypes.put(category, poiTypes);