Skip to content

Commit

Permalink
fix load more bug when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadCym committed Jun 5, 2016
1 parent 4e8f19b commit defd00d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public void notifyDataChangedAfterLoadMore(List<T> data, boolean isNextLoad) {


private void addLoadMore(RecyclerView.ViewHolder holder) {
if (isLoadMore()) {
if (isLoadMore() && !mLoadingMoreEnable) {
mLoadingMoreEnable = true;
mRequestLoadMoreListener.onLoadMoreRequested();
}
Expand Down Expand Up @@ -589,7 +589,7 @@ protected void startAnim(Animator anim, int index) {
}

private boolean isLoadMore() {
return mNextLoadEnable && pageSize != -1 && !mLoadingMoreEnable && mRequestLoadMoreListener != null && mData.size() >= pageSize;
return mNextLoadEnable && pageSize != -1 && mRequestLoadMoreListener != null && mData.size() >= pageSize;
}

protected View getItemView(int layoutResId, ViewGroup parent) {
Expand Down

0 comments on commit defd00d

Please sign in to comment.