From 74cb45c505297743251aee3c11d2cab913dc5cc4 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 20 Oct 2016 22:25:26 +0200 Subject: [PATCH] fix bug with wiki search but keep alt_name old_name searchable --- .../src/net/osmand/binary/BinaryMapPoiReaderAdapter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/binary/BinaryMapPoiReaderAdapter.java b/OsmAnd-java/src/net/osmand/binary/BinaryMapPoiReaderAdapter.java index 368658eb2a..004b4edbe6 100644 --- a/OsmAnd-java/src/net/osmand/binary/BinaryMapPoiReaderAdapter.java +++ b/OsmAnd-java/src/net/osmand/binary/BinaryMapPoiReaderAdapter.java @@ -549,6 +549,9 @@ public class BinaryMapPoiReaderAdapter { if (!matches) { Map lt = am.getAdditionalInfo(); for (Entry e : lt.entrySet()) { + if(!e.getKey().contains("_name")) { + continue; + } matches = matcher.matches(e.getValue()); if (matches) { break;