Increase the height for hiding the multi-selection menu

This commit is contained in:
Alexander Sytnyk 2018-03-05 18:17:04 +02:00
parent 355dd82908
commit 6f8519e987

View file

@ -120,10 +120,12 @@ public class MapMultiSelectionMenuFragment extends Fragment implements MultiSele
((ObservableListView) listView).setScrollViewCallbacks(new ObservableScrollViewCallbacks() { ((ObservableListView) listView).setScrollViewCallbacks(new ObservableScrollViewCallbacks() {
boolean initialScroll = true; boolean initialScroll = true;
int minHeight = getResources().getDimensionPixelSize(R.dimen.multi_selection_header_height)
+ getResources().getDimensionPixelSize(R.dimen.list_item_height);
@Override @Override
public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) { public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {
if (scrollY <= 0) { if (scrollY <= minHeight) {
if (initialScroll) { if (initialScroll) {
initialScroll = false; initialScroll = false;
} else { } else {