From 0dd6c4a2e7a6e23d4662fdf920aeeed03795878f Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 8 Feb 2012 00:08:29 +0100 Subject: [PATCH] Name fix --- .../src/net/osmand/plus/activities/EditingPOIActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/EditingPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/EditingPOIActivity.java index 289efcf5b3..addf3832bc 100644 --- a/OsmAnd/src/net/osmand/plus/activities/EditingPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/EditingPOIActivity.java @@ -266,7 +266,10 @@ public class EditingPOIActivity implements DialogProvider { } } n.putTag(tag, val); - n.putTag(OSMTagKey.NAME.getValue(), nameText.getText().toString()); + String name = nameText.getText().toString(); + if(name.length() > 0) { + n.putTag(OSMTagKey.NAME.getValue(), name); + } if (openingHours.getText().toString().length() == 0) { n.removeTag(OSMTagKey.OPENING_HOURS.getValue()); } else {