Skip to content

Commit

Permalink
Update BaseQuickAdapter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
CymChad authored Oct 22, 2016
1 parent 437b64f commit f3ced3b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public void addData(int position, List<T> data) {
*/
public void addData(List<T> newData) {
this.mData.addAll(newData);
hiedLoadingMore();
hideLoadingMore();
notifyItemRangeInserted(mData.size() - newData.size() + getHeaderLayoutCount(), newData.size());
}

Expand All @@ -282,11 +282,11 @@ public boolean isLoading() {
* same as addData(List<T>) but for when data is manually added to the adapter
*/
public void dataAdded() {
hiedLoadingMore();
hideLoadingMore();
notifyDataSetChanged();
}

public void hiedLoadingMore() {
public void hideLoadingMore() {
if (mNextLoadEnable) {
mLoadingMoreEnable = false;
}
Expand Down

0 comments on commit f3ced3b

Please sign in to comment.