Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadCym committed Aug 22, 2016
1 parent 181820d commit af9c9c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void run() {
}

private void initAdapter() {
mQuickAdapter = new QuickAdapter(2);
mQuickAdapter = new QuickAdapter(PAGE_SIZE);
mQuickAdapter.openLoadAnimation();
mRecyclerView.setAdapter(mQuickAdapter);
mCurrentCounter = mQuickAdapter.getData().size();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ public void setNewData(List<T> data) {
*/
public void addData(List<T> newData) {
this.mData.addAll(newData);
if (mRequestLoadMoreListener != null) {
mNextLoadEnable = true;
if (mNextLoadEnable) {
mLoadingMoreEnable = false;
}
notifyDataSetChanged();
Expand Down

0 comments on commit af9c9c7

Please sign in to comment.