Skip to content

Commit

Permalink
fix 161
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadCym committed Jul 26, 2016
1 parent 1a32778 commit f60eb9f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ public interface OnRecyclerViewItemChildLongClickListener {

public class OnItemChildLongClickListener implements View.OnLongClickListener {
public RecyclerView.ViewHolder mViewHolder;

@Override
public boolean onLongClick(View v) {
if (mChildLongClickListener != null) {
Expand Down Expand Up @@ -574,6 +575,8 @@ public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) {
int type = holder.getItemViewType();
if (type == EMPTY_VIEW || type == HEADER_VIEW || type == FOOTER_VIEW || type == LOADING_VIEW) {
setFullSpan(holder);
} else {
addAnimation(holder);
}
}

Expand Down Expand Up @@ -622,7 +625,6 @@ public void onBindViewHolder(final RecyclerView.ViewHolder holder, int positions
switch (viewType) {
case 0:
convert((BaseViewHolder) holder, mData.get(holder.getLayoutPosition() - getHeaderLayoutCount()));
addAnimation(holder);
break;
case LOADING_VIEW:
addLoadMore(holder);
Expand Down

0 comments on commit f60eb9f

Please sign in to comment.