return true on hasLoadedAllItems not working
See original GitHub issueI have the following code and loading row is still showing. Why?
@Override
public void onLoadMore() {
Log.d("EncryptionPager","onLoadMore");
}
@Override
public boolean isLoading() {
Log.d("EncryptionPager","isLoading");
return false;
}
@Override
public boolean hasLoadedAllItems() {
Log.d("EncryptionPager","hasLoadedAllItems");
return true;
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
It's been while but I think if hasLoadedAllItems returns true then the ...
It's been while but I think if hasLoadedAllItems returns true then the library wouldn't add a loading item at the bottom of the...
Read more >Return true or false not working in JavaScript - Stack Overflow
The problem here is that you are getting the return value of outer , but outer doesn't return anything. return true (or false...
Read more >Scroll Views - Paginate - The Android Arsenal
For a working implementation of this project see the ... Indicate whether all data (pages) are loaded or not return hasLoadedAllItems; } };....
Read more >com.paginate.Paginate Maven / Gradle / Ivy
@return true if loading is currently in progress, false otherwise. ... boolean hasLoadedAllItems(); } /** * Use this method to indicate that there...
Read more >About RecyclerView in Android
... loading or not } @Override public boolean hasLoadedAllItems() { return currentPage == totalPages; // if all pages are loaded return true } ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Loading row hides only when setHasMoreDataToLoad() method is called.
From RecyclerPaginate.java:
The problem is that method is only called when adapter data is changed.
So there are two solutions:
hasLoadedAllItems()to return true and after this notify the adapter by callingadapter.notifyDataSetChanged();And then in callbacks:
This has been resolved as a part of the latest release (check out release 1.0.0)
I’m closing this MR, feel free to reopen if you still experiencing this issue.