diff --git a/OsmAnd/res/layout/point_editor_fragment.xml b/OsmAnd/res/layout/point_editor_fragment.xml index 1007a3d02e..ac42369a5a 100644 --- a/OsmAnd/res/layout/point_editor_fragment.xml +++ b/OsmAnd/res/layout/point_editor_fragment.xml @@ -234,6 +234,7 @@ = 21 && AndroidUiHelper.isOrientationPortrait(getActivity())) { + Rect rect = new Rect(); + getActivity().getWindow().getDecorView().getWindowVisibleDisplayFrame(rect); + int heightDiff = getResources().getDisplayMetrics().heightPixels - rect.bottom; + view.findViewById(R.id.buttons_container).setPadding(0, 0, 0, heightDiff); + } } }); } else { @@ -219,11 +228,6 @@ public abstract class PointEditorFragment extends BaseOsmAndFragment { return R.color.status_bar_light; } - @Override - protected boolean isFullScreenAllowed() { - return false; - } - private void hideKeyboard() { InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE); if (inputMethodManager != null) {