Skip to content

Commit

Permalink
fix:call remove method crush
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwei committed Feb 21, 2017
1 parent c389464 commit 434bfef
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@ public void remove(int start,int count){
if((start +count) > mData.size()){
return;
}
int size = getItemCount();
for(int i =start;i<size;i++){
mData.remove(i);
}

mData.subList(start,start+count).clear();

notifyItemRangeRemoved(start,count);
}
Expand Down

0 comments on commit 434bfef

Please sign in to comment.