Clear inputs after adding marker

This commit is contained in:
PavelRatushny 2017-10-30 15:55:06 +02:00
parent fb0291d604
commit 693357a9ae

View file

@ -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() {