diff --git a/OsmAnd/res/layout/coordinate_input_keyboard.xml b/OsmAnd/res/layout/coordinate_input_keyboard.xml
index 9c60c34be8..4ed084b555 100644
--- a/OsmAnd/res/layout/coordinate_input_keyboard.xml
+++ b/OsmAnd/res/layout/coordinate_input_keyboard.xml
@@ -98,7 +98,7 @@
android:layout_height="match_parent"/>
-
+
+
+
+
+
+
+
+
+
diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java
index ef21dae289..9d6f47ec62 100644
--- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java
@@ -369,6 +369,9 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
case R.id.keyboard_item_next_field:
switchEditText(focusedEditText.getId(), true);
break;
+ case R.id.keyboard_item_hide:
+ changeOsmandKeyboardVisibility(false);
+ break;
default:
focusedEditText.setText(focusedEditText.getText().toString() + getItemObjectById(id));
focusedEditText.setSelection(focusedEditText.getText().length());
@@ -391,7 +394,8 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
R.id.keyboard_item_9,
R.id.keyboard_item_clear,
R.id.keyboard_item_next_field,
- R.id.keyboard_item_backspace);
+ R.id.keyboard_item_backspace,
+ R.id.keyboard_item_hide);
if (!isOsmandKeyboardOn() && isOsmandKeyboardCurrentlyVisible()) {
changeOsmandKeyboardVisibility(false);
@@ -458,7 +462,9 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
for (@IdRes int id : itemsIds) {
View itemView = keyboardView.findViewById(id);
Object item = getItemObjectById(id);
- final boolean controlItem = id == R.id.keyboard_item_next_field || id == R.id.keyboard_item_backspace;
+ final boolean controlItem = id == R.id.keyboard_item_next_field
+ || id == R.id.keyboard_item_backspace
+ || id == R.id.keyboard_item_hide;
itemView.setBackgroundResource(controlItem ? controlItemBg : itemBg);
itemView.setOnClickListener(listener);
@@ -531,6 +537,8 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
return R.drawable.ic_keyboard_next_field;
case R.id.keyboard_item_backspace:
return R.drawable.ic_keyboard_backspace;
+ case R.id.keyboard_item_hide:
+ return R.drawable.ic_action_keyboard_hide;
}
return -1;
}