From 785f0a5538cf3ef0a5be1d989c1f197dffa2a5cd Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 17 Jun 2018 16:52:54 +0200 Subject: [PATCH] Fix synonyms support --- OsmAnd/src/net/osmand/plus/AppInitializer.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/AppInitializer.java b/OsmAnd/src/net/osmand/plus/AppInitializer.java index 9a49cf7c93..02b129ced4 100644 --- a/OsmAnd/src/net/osmand/plus/AppInitializer.java +++ b/OsmAnd/src/net/osmand/plus/AppInitializer.java @@ -416,7 +416,14 @@ public class AppInitializer implements IProgress { Field f = R.string.class.getField("poi_" + keyName); if (f != null) { Integer in = (Integer) f.get(null); - return en.getString(in); + String val = app.getString(in); + if(val != null) { + int ind = val.indexOf(';'); + if(ind > 0) { + return val.substring(0, ind); + } + } + return val; } } catch (Exception e) { }