Clear button clears all inputs

This commit is contained in:
PavelRatushny 2017-11-03 18:20:22 +02:00
parent 99298344f2
commit 83215d47a3

View file

@ -293,7 +293,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
EditText focusedEditText = (EditText) focusedView; EditText focusedEditText = (EditText) focusedView;
switch (i) { switch (i) {
case CLEAR_BUTTON_POSITION: case CLEAR_BUTTON_POSITION:
focusedEditText.setText(""); clearInputs();
break; break;
case BACKSPACE_BUTTON_POSITION: case BACKSPACE_BUTTON_POSITION:
String str = focusedEditText.getText().toString(); String str = focusedEditText.getText().toString();