Hide osmand keyboard on back press
This commit is contained in:
parent
d97b723422
commit
66c5cda23e
1 changed files with 6 additions and 2 deletions
|
@ -126,8 +126,12 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
Dialog dialog = new Dialog(ctx, getTheme()) {
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
saveMarkers();
|
||||
super.onBackPressed();
|
||||
if (isOsmandKeyboardCurrentlyVisible()) {
|
||||
changeOsmandKeyboardVisibility(false);
|
||||
} else {
|
||||
saveMarkers();
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
||||
};
|
||||
Window window = dialog.getWindow();
|
||||
|
|
Loading…
Reference in a new issue