From 6f8519e987c7f478462d938e412afbd332329a0e Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Mon, 5 Mar 2018 18:17:04 +0200 Subject: [PATCH] Increase the height for hiding the multi-selection menu --- .../mapcontextmenu/other/MapMultiSelectionMenuFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java index 8a56d19393..b0b35d545f 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java @@ -120,10 +120,12 @@ public class MapMultiSelectionMenuFragment extends Fragment implements MultiSele ((ObservableListView) listView).setScrollViewCallbacks(new ObservableScrollViewCallbacks() { boolean initialScroll = true; + int minHeight = getResources().getDimensionPixelSize(R.dimen.multi_selection_header_height) + + getResources().getDimensionPixelSize(R.dimen.list_item_height); @Override public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) { - if (scrollY <= 0) { + if (scrollY <= minHeight) { if (initialScroll) { initialScroll = false; } else {