This commit is contained in:
Victor Shcherb 2012-02-08 00:08:29 +01:00
parent 13fed67b8a
commit 0dd6c4a2e7

View file

@ -266,7 +266,10 @@ public class EditingPOIActivity implements DialogProvider {
} }
} }
n.putTag(tag, val); 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) { if (openingHours.getText().toString().length() == 0) {
n.removeTag(OSMTagKey.OPENING_HOURS.getValue()); n.removeTag(OSMTagKey.OPENING_HOURS.getValue());
} else { } else {