From 504d7a86bf0bdb16a0a2782b321325ae90b58292 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 13 Apr 2017 19:42:49 +0200 Subject: [PATCH] Fix search for 1-digit houses --- OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java b/OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java index 31b66511a6..2e1aecfc5c 100644 --- a/OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java +++ b/OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java @@ -639,7 +639,7 @@ public class SearchPhrase { List unknownSearchWords = getUnknownSearchWords(); String wordToSearch = ""; - if (getUnknownSearchWordLength() > 1) { + if (unknownSearchWords.size() > 0) { List searchWords = new ArrayList<>(unknownSearchWords); searchWords.add(0, getUnknownSearchWord()); Collections.sort(searchWords, new Comparator() {