diff --git a/OsmAnd/res/layout/osm_user_login_details.xml b/OsmAnd/res/layout/osm_user_login_details.xml
index 7b882e4914..d0569ca08a 100644
--- a/OsmAnd/res/layout/osm_user_login_details.xml
+++ b/OsmAnd/res/layout/osm_user_login_details.xml
@@ -1,5 +1,5 @@
-
+ android:layout_marginLeft="24dp"
+ android:layout_marginRight="24dp"/>
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/OsmAnd/res/layout/send_poi_dialog.xml b/OsmAnd/res/layout/send_poi_dialog.xml
index 010dd7ce62..7eaafd9efb 100644
--- a/OsmAnd/res/layout/send_poi_dialog.xml
+++ b/OsmAnd/res/layout/send_poi_dialog.xml
@@ -4,43 +4,58 @@
android:layout_height="wrap_content"
android:orientation="vertical">
-
-
+ android:orientation="vertical">
-
-
+
-
+
+
+
+
+
+
+
+
@@ -48,8 +63,8 @@
android:id="@+id/message_field"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
+ android:layout_marginLeft="24dp"
+ android:layout_marginRight="24dp"
android:inputType="textMultiLine"
android:minLines="1"/>
@@ -57,8 +72,9 @@
android:id="@+id/close_change_set_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
+ android:layout_marginLeft="24dp"
+ android:layout_marginRight="24dp"
+ android:layout_marginBottom="16dp"
android:text="@string/close_changeset"/>
diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml
index f21a38346e..babb32ecea 100644
--- a/OsmAnd/res/values/strings.xml
+++ b/OsmAnd/res/values/strings.xml
@@ -10,6 +10,7 @@
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
+ Upload POI
Route calculation
You do not have tracks yet
You may also add tracks to the folder
diff --git a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java
index 42cac83713..33157471ff 100644
--- a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java
@@ -59,17 +59,19 @@ public class SendPoiDialogFragment extends DialogFragment {
.getSettings();
userNameEditText.setText(settings.USER_NAME.get());
passwordEditText.setText(settings.USER_PASSWORD.get());
- boolean hasOsmPOI = false;
+ boolean hasPoiGroup = false;
assert poi != null;
for (OsmPoint p : poi) {
if (p.getGroup() == OsmPoint.Group.POI) {
- hasOsmPOI = true;
+ hasPoiGroup = true;
break;
}
}
- messageLabel.setVisibility(hasOsmPOI ? View.VISIBLE : View.GONE);
- messageEditText.setVisibility(hasOsmPOI ? View.VISIBLE : View.GONE);
- closeChangeSetCheckBox.setVisibility(hasOsmPOI ? View.VISIBLE : View.GONE);
+ final boolean hasPOI = hasPoiGroup;
+ messageLabel.setVisibility(hasPOI ? View.VISIBLE : View.GONE);
+ messageEditText.setVisibility(hasPOI ? View.VISIBLE : View.GONE);
+ closeChangeSetCheckBox.setVisibility(hasPOI ? View.VISIBLE : View.GONE);
+ view.findViewById(R.id.osm_note_header).setVisibility(hasPOI ? View.GONE : View.VISIBLE);
uploadAnonymously.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
@@ -87,7 +89,7 @@ public class SendPoiDialogFragment extends DialogFragment {
progressDialogPoiUploader = (ProgressDialogPoiUploader) getParentFragment();
}
- builder.setTitle(R.string.upload_osm_note)
+ builder.setTitle(hasPOI ? R.string.upload_poi : R.string.upload_osm_note)
.setView(view)
.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
@Override
@@ -105,7 +107,7 @@ public class SendPoiDialogFragment extends DialogFragment {
}
progressDialogPoiUploader.showProgressDialog(poi,
closeChangeSetCheckBox.isChecked(),
- uploadAnonymously.isChecked());
+ !hasPOI && uploadAnonymously.isChecked());
}
})
.setNegativeButton(R.string.shared_string_cancel, null);