Hide osmand keyboard on back press

This commit is contained in:
alex 2018-02-21 14:33:00 +02:00
parent d97b723422
commit 66c5cda23e

View file

@ -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();