diff --git a/OsmAnd/res/layout/editing_poi.xml b/OsmAnd/res/layout/editing_poi.xml index f4b711afdb..2dbc71d964 100644 --- a/OsmAnd/res/layout/editing_poi.xml +++ b/OsmAnd/res/layout/editing_poi.xml @@ -5,6 +5,7 @@ android:layout_height="fill_parent"> + diff --git a/OsmAnd/res/values-ru/strings.xml b/OsmAnd/res/values-ru/strings.xml index 1b57431c1e..3d651ab6d1 100644 --- a/OsmAnd/res/values-ru/strings.xml +++ b/OsmAnd/res/values-ru/strings.xml @@ -1,5 +1,6 @@ + Интернет OSM классификация с картинками Системная Изменить язык программы Локализация diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 5f781ff248..ecb40deb41 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -1,5 +1,6 @@ + Online OSM map classification with images System Change display language Preferred locale diff --git a/OsmAnd/src/net/osmand/plus/activities/EditingPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/EditingPOIActivity.java index 5248d98d72..474fb5a9ac 100644 --- a/OsmAnd/src/net/osmand/plus/activities/EditingPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/EditingPOIActivity.java @@ -65,15 +65,19 @@ import android.app.ProgressDialog; import android.app.AlertDialog.Builder; import android.content.Context; import android.content.DialogInterface; +import android.content.Intent; import android.content.res.Resources; +import android.net.Uri; import android.text.Editable; import android.text.TextWatcher; +import android.text.method.LinkMovementMethod; import android.util.Xml; import android.view.View; import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; import android.widget.Button; import android.widget.EditText; +import android.widget.TextView; import android.widget.Toast; public class EditingPOIActivity { @@ -174,6 +178,15 @@ public class EditingPOIActivity { commentText = ((EditText)dlg.findViewById(R.id.Comment)); updateType(a); + TextView linkToOsmDoc = (TextView) dlg.findViewById(R.id.LinkToOsmDoc); + linkToOsmDoc.setOnClickListener(new View.OnClickListener() { + + @Override + public void onClick(View v) { + ctx.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://wiki.openstreetmap.org/wiki/Map_Features"))); + } + }); + linkToOsmDoc.setMovementMethod(LinkMovementMethod.getInstance()); openHoursButton.setOnClickListener(new View.OnClickListener(){