This commit is contained in:
Arseniy Borisov 2016-08-13 15:30:43 +03:00
parent e79bb84cb8
commit 83edf564b3
1 changed files with 1 additions and 1 deletions

View File

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