Set initialScroll = false in onDownMotionEvent()

This commit is contained in:
alex 2018-03-06 10:28:51 +02:00
parent 6f8519e987
commit 98077a92ed

View file

@ -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