Fix for #308 part 2

This commit is contained in:
David 2016-06-07 11:43:13 -03:00
parent 59523d6a08
commit ddc3b47dfa

View file

@ -289,7 +289,7 @@ public class VideoItemListFragment extends ListFragment {
int visibleItemCount, int totalItemCount) { int visibleItemCount, int totalItemCount) {
if (mode != PRESENT_VIDEOS_MODE if (mode != PRESENT_VIDEOS_MODE
&& list.getChildAt(0) != null && list.getChildAt(0) != null
&& list.getLastVisiblePosition() == list.getAdapter().getCount() - 2 && list.getLastVisiblePosition() == list.getAdapter().getCount() - 1
&& list.getChildAt(list.getChildCount() - 1).getBottom() >= list.getHeight()) { && list.getChildAt(list.getChildCount() - 1).getBottom() >= list.getHeight()) {
long time = System.currentTimeMillis(); long time = System.currentTimeMillis();
if ((time - lastScrollDate) > 200 if ((time - lastScrollDate) > 200