From 98077a92ed5520362c5283b46a83b602ed8345e8 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 6 Mar 2018 10:28:51 +0200 Subject: [PATCH] Set initialScroll = false in onDownMotionEvent() --- .../other/MapMultiSelectionMenuFragment.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java index b0b35d545f..44546d08a4 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java @@ -125,18 +125,14 @@ public class MapMultiSelectionMenuFragment extends Fragment implements MultiSele @Override public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) { - if (scrollY <= minHeight) { - if (initialScroll) { - initialScroll = false; - } else { - dismissMenu(); - } + if (scrollY <= minHeight && !initialScroll) { + dismissMenu(); } } @Override public void onDownMotionEvent() { - + initialScroll = false; } @Override