Increase the height for hiding the multi-selection menu
This commit is contained in:
parent
355dd82908
commit
6f8519e987
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue