diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index 54aaa97a5e..75eefdb5f0 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -571,7 +571,6 @@ public class MapActivityActions implements DialogProvider { public ContextMenuAdapter createMainOptionsMenu() { final OsmandMapTileView mapView = mapActivity.getMapView(); - int viewHeight = mapView.getViewHeight(); final OsmandApplication app = mapActivity.getMyApplication(); ContextMenuAdapter optionsMenuHelper = new ContextMenuAdapter(); @@ -790,15 +789,6 @@ public class MapActivityActions implements DialogProvider { } ItemBuilder divider = new ItemBuilder().setLayout(R.layout.drawer_divider); - if (viewHeight > 0) { - int listItemHeight = app.getResources().getDimensionPixelSize(R.dimen.list_item_height); - int dividerHeight = viewHeight - optionsMenuHelper.length() * listItemHeight; - if (dividerHeight > 0) { - divider.setMinHeight(dividerHeight); - } else if (dividerHeight < 0) { - divider.setMinHeight(AndroidUtils.dpToPx(app, 16f)); - } - } divider.setPosition(pluginsItemIndex >= 0 ? pluginsItemIndex : 7); optionsMenuHelper.addItem(divider.createItem());