Skip to content

Commit

Permalink
fixbug 414
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadCym committed Oct 23, 2016
1 parent 219a35b commit bc6c667
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ public void addData(List<T> newData) {
this.mData.addAll(newData);
hideLoadingMore();
notifyItemRangeInserted(mData.size() - newData.size() + getHeaderLayoutCount(), newData.size());
notifyDataSetChanged();
}

/**
Expand Down Expand Up @@ -607,7 +608,6 @@ public void onBindViewHolder(final RecyclerView.ViewHolder holder, int positions
break;
default:
convert((BaseViewHolder) holder, mData.get(holder.getLayoutPosition() - getHeaderLayoutCount()));
onBindDefViewHolder((BaseViewHolder) holder, mData.get(holder.getLayoutPosition() - getHeaderLayoutCount()));
break;
}

Expand Down Expand Up @@ -924,15 +924,6 @@ protected View getItemView(int layoutResId, ViewGroup parent) {
}


/**
* @see #convert(BaseViewHolder, Object) ()
* @deprecated This method is deprecated
* {@link #convert(BaseViewHolder, Object)} depending on your use case.
*/
@Deprecated
protected void onBindDefViewHolder(BaseViewHolder holder, T item) {
}

public interface RequestLoadMoreListener {

void onLoadMoreRequested();
Expand Down

0 comments on commit bc6c667

Please sign in to comment.