refactored afterTextChanged in textWatcher
This commit is contained in:
parent
0e9b4723de
commit
844328c6ef
1 changed files with 1 additions and 2 deletions
|
@ -630,9 +630,8 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
if (focusedView != null && focusedView instanceof EditTextEx) {
|
||||
EditTextEx et = (EditTextEx) focusedView;
|
||||
int currentLength = et.getText().length();
|
||||
String lonFirstInput;
|
||||
if (et.getId() == R.id.lon_first_input_et) {
|
||||
lonFirstInput = editable.toString();
|
||||
String lonFirstInput = et.getText().toString();
|
||||
if (currentLength == 2) {
|
||||
if (lonFirstInput.charAt(0) != '1' && lonFirstInput.charAt(0) != '0') {
|
||||
switchEditText(et.getId(), true);
|
||||
|
|
Loading…
Reference in a new issue