diff --git a/OsmAnd/res/layout/local_openstreetmap.xml b/OsmAnd/res/layout/local_openstreetmap.xml
index 9759093947..12d4346e6f 100644
--- a/OsmAnd/res/layout/local_openstreetmap.xml
+++ b/OsmAnd/res/layout/local_openstreetmap.xml
@@ -9,7 +9,7 @@
android:layout_marginLeft = "3dp" android:layout_marginTop ="3dp" android:layout_marginRight = "3dp"/>
-
+
diff --git a/OsmAnd/res/menu/localosm_child.xml b/OsmAnd/res/menu/localosm_child.xml
index 79ee1b1dcf..d2e7362ce0 100644
--- a/OsmAnd/res/menu/localosm_child.xml
+++ b/OsmAnd/res/menu/localosm_child.xml
@@ -2,6 +2,6 @@
\ No newline at end of file
diff --git a/OsmAnd/res/menu/localosm_group.xml b/OsmAnd/res/menu/localosm_group.xml
deleted file mode 100644
index aa55b21ce0..0000000000
--- a/OsmAnd/res/menu/localosm_group.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
\ No newline at end of file
diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml
index a047dac26b..ac33037688 100644
--- a/OsmAnd/res/values/strings.xml
+++ b/OsmAnd/res/values/strings.xml
@@ -9,7 +9,6 @@
1. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
-
Show alarms…
Show speed limits, speed cameras, speed bumps, and other warnings
Use the compass when no heading is detected otherwise
diff --git a/OsmAnd/src/net/osmand/plus/osmedit/AbstractOpenstreetmapUtil.java b/OsmAnd/src/net/osmand/plus/osmedit/AbstractOpenstreetmapUtil.java
index 7c35ba2be0..83f51bcad5 100644
--- a/OsmAnd/src/net/osmand/plus/osmedit/AbstractOpenstreetmapUtil.java
+++ b/OsmAnd/src/net/osmand/plus/osmedit/AbstractOpenstreetmapUtil.java
@@ -12,7 +12,6 @@ import net.osmand.plus.OsmandApplication;
import android.app.Activity;
public abstract class AbstractOpenstreetmapUtil implements OpenstreetmapUtil {
-
@Override
diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java b/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java
index 5bfd0798c7..9ed05d8adc 100644
--- a/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java
+++ b/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java
@@ -2,7 +2,6 @@ package net.osmand.plus.osmedit;
import java.text.MessageFormat;
import java.util.ArrayList;
-import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
@@ -121,7 +120,7 @@ public class EditingPOIActivity implements DialogProvider {
}
public void showDeleteDialog(Amenity a){
- final Node n = openstreetmapUtilToLoad.loadNode(a);
+ final Node n = openstreetmapUtil.loadNode(a);
if(n == null){
AccessibleToast.makeText(ctx, ctx.getResources().getString(R.string.poi_error_poi_not_found), Toast.LENGTH_LONG).show();
return;
@@ -174,9 +173,105 @@ public class EditingPOIActivity implements DialogProvider {
phoneText.setText(a.getPhone());
EditText websiteText = ((EditText)dlg.findViewById(R.id.Website));
websiteText.setText(a.getSite());
+ final TableLayout layout = ((TableLayout)dlg.findViewById(R.id.advancedModeTable));
+ layout.setVisibility(View.GONE);
updateType(a);
}
+ private void addTagValueRow(final Node n, final TableLayout layout, String tg, String vl) {
+ final TableRow newTagRow = new TableRow(ctx);
+ TableRow.LayoutParams tlp = new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT, TableRow.LayoutParams.WRAP_CONTENT);
+ tlp.leftMargin = 5;
+ newTagRow.setLayoutParams(tlp);
+
+ final AutoCompleteTextView tag = new AutoCompleteTextView(ctx);
+ final AutoCompleteTextView value = new AutoCompleteTextView(ctx);
+ final Button delete = new Button(ctx);
+
+ tag.setLayoutParams(tlp);
+ if(tg != null) {
+ tag.setText(tg);
+ } else {
+ tag.setHint("Tag");
+ }
+
+ final Set tagKeys = new TreeSet();
+ for (OSMTagKey t : OSMTagKey.values()) {
+ if ((t != OSMTagKey.NAME) && (t != OSMTagKey.OPENING_HOURS) && (t != OSMTagKey.PHONE)
+ && (t != OSMTagKey.WEBSITE)) {
+ tagKeys.add(t.getValue());
+ }
+ }
+ ArrayAdapter