From 5ac126b1056fd629e481d52cf309ffc5342c14bf Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Fri, 6 Oct 2017 17:08:15 +0300 Subject: [PATCH] Fix #4538 --- OsmAnd-java/src/net/osmand/search/SearchUICore.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/search/SearchUICore.java b/OsmAnd-java/src/net/osmand/search/SearchUICore.java index b0a98941fc..41ad1f50be 100644 --- a/OsmAnd-java/src/net/osmand/search/SearchUICore.java +++ b/OsmAnd-java/src/net/osmand/search/SearchUICore.java @@ -540,6 +540,10 @@ public class SearchUICore { } } } + if (Algorithms.isEmpty(object.localeName) && object.alternateName != null) { + object.localeName = object.alternateName; + object.alternateName = null; + } if (matcher == null || matcher.publish(object)) { count++; object.parentSearchResult = parentSearchResult;