Clear inputs after adding marker
This commit is contained in:
parent
fb0291d604
commit
693357a9ae
1 changed files with 11 additions and 0 deletions
|
@ -645,6 +645,17 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
mapMarker.nextKey = MapMarkersDbHelper.TAIL_NEXT_VALUE;
|
mapMarker.nextKey = MapMarkersDbHelper.TAIL_NEXT_VALUE;
|
||||||
mapMarkers.add(mapMarker);
|
mapMarkers.add(mapMarker);
|
||||||
adapter.notifyDataSetChanged();
|
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() {
|
private MapActivity getMapActivity() {
|
||||||
|
|
Loading…
Reference in a new issue