Fix clear
This commit is contained in:
parent
ebc878ca89
commit
f86b89472f
2 changed files with 7 additions and 5 deletions
|
@ -680,16 +680,14 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
mapMarkers.add(mapMarker);
|
||||
adapter.notifyDataSetChanged();
|
||||
clearInputs();
|
||||
((OsmandTextFieldBoxes) mainView.findViewById(R.id.latitude_box)).select();
|
||||
}
|
||||
|
||||
private void clearInputs() {
|
||||
for (EditText inputEditText : inputEditTexts) {
|
||||
inputEditText.setText("");
|
||||
}
|
||||
for (OsmandTextFieldBoxes osmandTextFieldBox : textFieldBoxes) {
|
||||
osmandTextFieldBox.getEditText().setText("");
|
||||
osmandTextFieldBox.deactivate();
|
||||
}
|
||||
((OsmandTextFieldBoxes) mainView.findViewById(R.id.latitude_box)).select();
|
||||
}
|
||||
|
||||
private MapActivity getMapActivity() {
|
||||
|
|
|
@ -2,11 +2,11 @@ package net.osmand.plus.widgets;
|
|||
|
||||
import android.content.Context;
|
||||
import android.support.v4.view.ViewCompat;
|
||||
import android.text.InputType;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
import studio.carbonylgroup.textfieldboxes.ExtendedEditText;
|
||||
import studio.carbonylgroup.textfieldboxes.TextFieldBoxes;
|
||||
|
||||
public class OsmandTextFieldBoxes extends TextFieldBoxes {
|
||||
|
@ -80,4 +80,8 @@ public class OsmandTextFieldBoxes extends TextFieldBoxes {
|
|||
|
||||
this.activated = false;
|
||||
}
|
||||
|
||||
public ExtendedEditText getEditText() {
|
||||
return editText;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue