Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 026c4a2

Browse files
committed
Check only for Visible Item, not completely Visible; Fix #180
1 parent b932f2c commit 026c4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/zulip/android/activities/MessageListFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
163163
Log.i("scroll", "Starting request below");
164164
loadMoreMessages(LoadPosition.BELOW);
165165
}
166-
if (linearLayoutManager.findFirstCompletelyVisibleItemPosition() < near && !loadedToTop) {
166+
if (linearLayoutManager.findFirstVisibleItemPosition() < near && !loadedToTop) {
167167
// At the top of the list
168168
Log.i("scroll", "Starting request above");
169169
loadMoreMessages(LoadPosition.ABOVE);

0 commit comments

Comments
 (0)