From 9205db4191c9c9ac3178abd282cb6761f3c53492 Mon Sep 17 00:00:00 2001 From: RZR-UA Date: Sat, 12 Oct 2024 11:54:28 +0200 Subject: [PATCH] Suppress warn "unknown poi type" for root tag --- OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java b/OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java index 38bc5cf6f3d..493a349e9b8 100644 --- a/OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java +++ b/OsmAnd-java/src/main/java/net/osmand/osm/MapPoiTypes.java @@ -547,6 +547,9 @@ public void initFromInputStream(InputStream is) { } } } + case "poi_types" -> { + // just ignore the root tag of poi_types.xml + } default -> log.warn("Unknown start tag encountered: " + name); } } else if (tok == XmlPullParser.END_TAG) {