From ddc3b47dfa0e720382933dd1664d2c8790e9d588 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 7 Jun 2016 11:43:13 -0300 Subject: [PATCH] Fix for #308 part 2 --- app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java b/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java index c51ce1c13..7e279a00b 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java +++ b/app/src/main/java/org/schabi/newpipe/VideoItemListFragment.java @@ -289,7 +289,7 @@ public class VideoItemListFragment extends ListFragment { int visibleItemCount, int totalItemCount) { if (mode != PRESENT_VIDEOS_MODE && list.getChildAt(0) != null - && list.getLastVisiblePosition() == list.getAdapter().getCount() - 2 + && list.getLastVisiblePosition() == list.getAdapter().getCount() - 1 && list.getChildAt(list.getChildCount() - 1).getBottom() >= list.getHeight()) { long time = System.currentTimeMillis(); if ((time - lastScrollDate) > 200