diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java index b4f24b1b59..7a66a50b29 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java @@ -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();