From ad5186b3915543a92801996c4b6afc4c8bc75494 Mon Sep 17 00:00:00 2001 From: PavelRatushnyi Date: Sat, 30 Sep 2017 10:55:14 +0300 Subject: [PATCH] Fix #4185 --- .../osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java index b8b95a82ab..2a68d2eb27 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/SendPoiDialogFragment.java @@ -76,11 +76,13 @@ public class SendPoiDialogFragment extends DialogFragment { break; } } - messageEditText.setText(createDefaultChangeSet()); + String defaultChangeSet = createDefaultChangeSet(); + messageEditText.setText(defaultChangeSet); 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); + closeChangeSetCheckBox.setChecked(hasPOI && !defaultChangeSet.equals("")); view.findViewById(R.id.osm_note_header).setVisibility(hasPOI ? View.GONE : View.VISIBLE); uploadAnonymously.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override