Skip to content

Conversation

24Lathiya
Copy link

int visibleThreshold = 5;
if (!loading && (lastVisibleItemPosition + visibleThreshold) > totalItemCount) {
currentPage++;
loadMoreListener.onLoadMore(loadMoreListener.getMessagesCount(), totalItemCount);
loading = true;
}

should be

int visibleThreshold = 5;
if (!loading && (lastVisibleItemPosition + visibleThreshold) > totalItemCount) {
currentPage++;
loadMoreListener.onLoadMore(currentPage, totalItemCount);
loading = true;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants