Skip to content

update onLoadMore in RecyclerScrollMoreListener#248

Open
24Lathiya wants to merge 24 commits intov0.3.2from
master
Open

update onLoadMore in RecyclerScrollMoreListener#248
24Lathiya wants to merge 24 commits intov0.3.2from
master

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