This method is very useful if RecyclerView is inside SwipeRefreshLayout. Because if user reaches bottom of the list, developer should make call to loadComplete.notifyLoadExhausted() to indicate to PagedLoadScrollListener that we have loaded last items from data source. However if user do SwipeToRefresh action, onLoadMore() method will not be called because loadExhausted is set to true.
Workaround for developer would be to create new scroll listener.
With resetPaging() developer will not need to create new instance of PagedLoadScrollListener, but just call resetPaging() method to reset internal state of PagedLoadScrollListener.
This method is very useful if RecyclerView is inside SwipeRefreshLayout. Because if user reaches bottom of the list, developer should make call to
loadComplete.notifyLoadExhausted()
to indicate to PagedLoadScrollListener that we have loaded last items from data source. However if user do SwipeToRefresh action,onLoadMore()
method will not be called becauseloadExhausted
is set totrue
.Workaround for developer would be to create new scroll listener.
With
resetPaging()
developer will not need to create new instance ofPagedLoadScrollListener
, but just callresetPaging()
method to reset internal state ofPagedLoadScrollListener
.