From bf9f0e52209e7e698edd7d5c71ebacde4e748c47 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Sun, 24 Nov 2013 20:24:14 +0100 Subject: [PATCH] Fix text types --- OsmAnd-java/src/net/osmand/data/Amenity.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/data/Amenity.java b/OsmAnd-java/src/net/osmand/data/Amenity.java index 284b28e8d4..98c56d6070 100644 --- a/OsmAnd-java/src/net/osmand/data/Amenity.java +++ b/OsmAnd-java/src/net/osmand/data/Amenity.java @@ -67,9 +67,15 @@ public class Amenity extends MapObject { if(this.additionalInfo == null){ this.additionalInfo = new LinkedHashMap(); } - this.additionalInfo.put(tag, value); - if(OPENING_HOURS.equals(tag)) { - this.openingHours = value; + if("name".equals(tag)) { + setName(value); + } else if("name:en".equals(tag)) { + setEnName(value); + } else { + this.additionalInfo.put(tag, value); + if (OPENING_HOURS.equals(tag)) { + this.openingHours = value; + } } }