Fix long press
This commit is contained in:
parent
c399209855
commit
0443bdfeb1
1 changed files with 54 additions and 51 deletions
|
@ -403,6 +403,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
View.OnLongClickListener inputEditTextOnLongClickListener = new View.OnLongClickListener() {
|
||||
@Override
|
||||
public boolean onLongClick(final View view) {
|
||||
if (useOsmandKeyboard || !orientationPortrait) {
|
||||
final EditText inputEditText = (EditText) view;
|
||||
PopupMenu popupMenu = new PopupMenu(getContext(), inputEditText);
|
||||
Menu menu = popupMenu.getMenu();
|
||||
|
@ -455,7 +456,9 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
popupMenu.show();
|
||||
}
|
||||
return true;
|
||||
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue