From 49f7215a4ce2019f447686078a1371ab6087cc93 Mon Sep 17 00:00:00 2001 From: Matthias Bethke Date: Tue, 5 Dec 2017 00:06:11 +0700 Subject: [PATCH 1/3] add Lao language code --- OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java b/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java index 58f636fce3..d20d7f79d4 100644 --- a/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java +++ b/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java @@ -26,7 +26,7 @@ public abstract class MapRenderingTypes { private static final Log log = PlatformUtil.getLog(MapRenderingTypes.class); public static final String[] langs = new String[] { "af", "als", "ar", "az", "be", "bg", "bn", "bpy", "br", "bs", "ca", "ceb", "cs", "cy", "da", "de", "el", "eo", "es", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gl", "he", "hi", "hsb", - "hr", "ht", "hu", "hy", "id", "is", "it", "ja", "ka", "ko", "ku", "la", "lb", "lt", "lv", "mk", "ml", "mr", "ms", "nds", "new", "nl", "nn", "no", "nv", "os", "pl", "pms", "pt", "ro", "ru", "sc", "sh", "sk", "sl", "sq", "sr", "sv", "sw", "ta", "te", "th", "tl", "tr", "uk", "vi", "vo", "zh" }; + "hr", "ht", "hu", "hy", "id", "is", "it", "ja", "ka", "ko", "ku", "la", "lb", "lo", "lt", "lv", "mk", "ml", "mr", "ms", "nds", "new", "nl", "nn", "no", "nv", "os", "pl", "pms", "pt", "ro", "ru", "sc", "sh", "sk", "sl", "sq", "sr", "sv", "sw", "ta", "te", "th", "tl", "tr", "uk", "vi", "vo", "zh" }; public final static byte RESTRICTION_NO_RIGHT_TURN = 1; From db05fbac56ff586a79bcc89df15b5a98972512ca Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 14 Jan 2018 08:50:05 +0100 Subject: [PATCH 2/3] Add Lao language string --- OsmAnd/res/values/strings.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index d652286b03..c77b4a2a79 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -825,6 +825,7 @@ Tamil Malayalam Luxembourgish + Lao Ossetian Esperanto Spanish (American) From c32671289e71e59a84222c58c7fcadfaded6844c Mon Sep 17 00:00:00 2001 From: PaulStets Date: Sun, 14 Jan 2018 11:41:20 +0200 Subject: [PATCH 3/3] Fixed #4906 --- 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 0fe421f8f1..f82d52b2c6 100644 --- a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java @@ -562,7 +562,7 @@ public class SearchCoreFactory { if (p.hasObjectType(ObjectType.POI_TYPE)) { return -1; } - if (p.getUnknownSearchWordLength() > 3 || p.getRadiusLevel() > 1) { + if (p.getUnknownSearchWordLength() >= 3 || p.getRadiusLevel() > 1) { return SEARCH_AMENITY_BY_NAME_API_PRIORITY_IF_3_CHAR; } return -1;