From 9f60edce0d57f611b1b390312971b5d58b0ddec2 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Tue, 3 Mar 2020 11:41:11 +0200 Subject: [PATCH] Fix zoom buttons overlap to context menu when cutout exist --- .../osmand/plus/mapcontextmenu/MapContextMenuFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java index 9d8bd58b2d..2198a6c405 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java @@ -88,7 +88,7 @@ import static net.osmand.plus.mapcontextmenu.MenuBuilder.SHADOW_HEIGHT_TOP_DP; public class MapContextMenuFragment extends BaseOsmAndFragment implements DownloadEvents { public static final String TAG = "MapContextMenuFragment"; - public static final float ZOOM_PADDING_TOP_DP = 4f; + public static final float ZOOM_PADDING_TOP_DP = 10f; public static final float MARKER_PADDING_DP = 20f; public static final float MARKER_PADDING_X_DP = 50f; public static final int ZOOM_IN_STANDARD = 17; @@ -2101,7 +2101,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo } private int getZoomButtonsY(int y) { - return y - zoomButtonsHeight - shadowHeight - zoomPaddingTop; + return y - zoomButtonsHeight - topScreenPosY - zoomPaddingTop; } private void doLayoutMenu() {