diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java index 60c17d979f..633fd04c51 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java @@ -645,6 +645,17 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm mapMarker.nextKey = MapMarkersDbHelper.TAIL_NEXT_VALUE; mapMarkers.add(mapMarker); adapter.notifyDataSetChanged(); + clearInputs(); + ((OsmandTextFieldBoxes) mainView.findViewById(R.id.latitude_box)).select(); + } + + private void clearInputs() { + for (ExtendedEditText editText : extendedEditTexts) { + editText.setText(""); + } + for (OsmandTextFieldBoxes osmandTextFieldBox : textFieldBoxes) { + osmandTextFieldBox.deactivate(); + } } private MapActivity getMapActivity() {