diff --git a/OsmAnd-java/src/net/osmand/binary/BinaryMapPoiReaderAdapter.java b/OsmAnd-java/src/net/osmand/binary/BinaryMapPoiReaderAdapter.java index 16d5f810cf..368658eb2a 100644 --- a/OsmAnd-java/src/net/osmand/binary/BinaryMapPoiReaderAdapter.java +++ b/OsmAnd-java/src/net/osmand/binary/BinaryMapPoiReaderAdapter.java @@ -795,7 +795,7 @@ public class BinaryMapPoiReaderAdapter { // break; case OsmandOdb.OsmAndPoiCategories.CATEGORIES_FIELD_NUMBER: PoiCategory type = poiTypes.getOtherPoiCategory(); - String subcat = ""; + String subtype = ""; int cat = codedIS.readUInt32(); int subcatId = cat >> SHIFT_BITS_CATEGORY; int catId = cat & CATEGORY_MASK; @@ -803,10 +803,11 @@ public class BinaryMapPoiReaderAdapter { type = region.categoriesType.get(catId); List subcats = region.subcategories.get(catId); if (subcatId < subcats.size()) { - subcat = subcats.get(subcatId); + subtype = subcats.get(subcatId); } } - if (req.poiTypeFilter.accept(type, subcat)) { + subtype = poiTypes.replaceDeprecatedSubtype(type, subtype); + if (req.poiTypeFilter.accept(type, subtype)) { codedIS.skipRawBytes(codedIS.getBytesUntilLimit()); return true; } diff --git a/OsmAnd/res/values-az/strings.xml b/OsmAnd/res/values-az/strings.xml index 14d4f1bddf..dd56ff72e9 100644 --- a/OsmAnd/res/values-az/strings.xml +++ b/OsmAnd/res/values-az/strings.xml @@ -1 +1,3 @@ - \ No newline at end of file + + + \ No newline at end of file