From 1f038fceb974312796791f7c135272f14e9b2417 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 25 Jan 2017 10:54:28 +0300 Subject: [PATCH] Fix poi additional search --- OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java index 71bd0873c2..bb9f1addff 100644 --- a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java @@ -557,7 +557,7 @@ public class SearchCoreFactory { List additionals = pt.getPoiAdditionals(); if (additionals != null) { for (PoiType a : additionals) { - if (!a.isReference() && !results.contains(a) && (nm.matches(a.getKeyName()) || nm.matches(a.getTranslation()))) { + if (!a.isReference() && !results.contains(a) && (nm.matches(a.getKeyName().replace('_', ' ')) || nm.matches(a.getTranslation()))) { results.add(a); } }