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,9 +126,13 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
Dialog dialog = new Dialog(ctx, getTheme()) {
|
Dialog dialog = new Dialog(ctx, getTheme()) {
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
|
if (isOsmandKeyboardCurrentlyVisible()) {
|
||||||
|
changeOsmandKeyboardVisibility(false);
|
||||||
|
} else {
|
||||||
saveMarkers();
|
saveMarkers();
|
||||||
super.onBackPressed();
|
super.onBackPressed();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
Window window = dialog.getWindow();
|
Window window = dialog.getWindow();
|
||||||
if (window != null) {
|
if (window != null) {
|
||||||
|
|
Loading…
Reference in a new issue