Show osmand keyboard on tap
This commit is contained in:
parent
91be41417c
commit
fb0291d604
1 changed files with 9 additions and 2 deletions
|
@ -346,8 +346,12 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
View.OnTouchListener textFieldBoxOnTouchListener = new View.OnTouchListener() {
|
View.OnTouchListener textFieldBoxOnTouchListener = new View.OnTouchListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouch(View view, MotionEvent motionEvent) {
|
public boolean onTouch(View view, MotionEvent motionEvent) {
|
||||||
if (orientationPortrait && !useOsmandKeyboard && isOsmandKeyboardCurrentlyVisible()) {
|
if (orientationPortrait) {
|
||||||
|
if (!useOsmandKeyboard && isOsmandKeyboardCurrentlyVisible()) {
|
||||||
changeOsmandKeyboardVisibility(false);
|
changeOsmandKeyboardVisibility(false);
|
||||||
|
} else if (useOsmandKeyboard && !isOsmandKeyboardCurrentlyVisible()) {
|
||||||
|
changeOsmandKeyboardVisibility(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -429,6 +433,9 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouch(View view, MotionEvent motionEvent) {
|
public boolean onTouch(View view, MotionEvent motionEvent) {
|
||||||
if (useOsmandKeyboard) {
|
if (useOsmandKeyboard) {
|
||||||
|
if (orientationPortrait && !isOsmandKeyboardCurrentlyVisible()) {
|
||||||
|
changeOsmandKeyboardVisibility(true);
|
||||||
|
}
|
||||||
EditText editText = (EditText) view;
|
EditText editText = (EditText) view;
|
||||||
int inType = editText.getInputType(); // Backup the input type
|
int inType = editText.getInputType(); // Backup the input type
|
||||||
editText.setInputType(InputType.TYPE_NULL); // Disable standard keyboard
|
editText.setInputType(InputType.TYPE_NULL); // Disable standard keyboard
|
||||||
|
|
Loading…
Reference in a new issue