arso8's crash fix

This commit is contained in:
Gavriil Sitnikov 2016-08-22 18:40:41 +03:00
parent 80f95dc9f7
commit 5ac6c6dda7
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ public abstract class ObservableCollectionAdapter<TItem, TViewHolder extends Obs
notifyItemRangeChanged(change.getStart() + getHeadersCount(), change.getCount());
break;
case REMOVED:
if (getItemCount() == 0) {
if (getItemCount() - getHeadersCount() == 0) {
//TODO: bug of recyclerview?
notifyDataSetChanged();
} else {