diff --git a/OsmAnd/res/values-large/sizes.xml b/OsmAnd/res/values-large/sizes.xml index 6314e1c12e..725d4063ec 100644 --- a/OsmAnd/res/values-large/sizes.xml +++ b/OsmAnd/res/values-large/sizes.xml @@ -183,4 +183,6 @@ 180dp 24dp 60dp + + 300dp \ No newline at end of file diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml index f8b3d8a2f3..8206366fe5 100644 --- a/OsmAnd/res/values/sizes.xml +++ b/OsmAnd/res/values/sizes.xml @@ -256,4 +256,6 @@ 120dp 16dp 40dp + + 200dp \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/AdditionalActionsBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/AdditionalActionsBottomSheetDialogFragment.java index cd5da18e10..8cefb38641 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/AdditionalActionsBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/AdditionalActionsBottomSheetDialogFragment.java @@ -114,7 +114,7 @@ public class AdditionalActionsBottomSheetDialogFragment extends net.osmand.plus. } ExtendedBottomSheetBehavior behavior = ExtendedBottomSheetBehavior.from(scrollView); - behavior.setPeekHeight(getPeekHeight()); + behavior.setPeekHeight(getResources().getDimensionPixelSize(R.dimen.bottom_sheet_menu_peek_height)); behavior.setBottomSheetCallback(new BottomSheetCallback() { @Override public void onStateChanged(@NonNull View bottomSheet, int newState) { @@ -185,10 +185,6 @@ public class AdditionalActionsBottomSheetDialogFragment extends net.osmand.plus. return R.id.third_item_container; } - private int getPeekHeight() { - return (availableScreenH * 2 / 3) - getResources().getDimensionPixelSize(R.dimen.bottom_sheet_cancel_button_height); - } - public interface ContextMenuItemClickListener { void onItemClick(int position); }