Skip to content

Commit

Permalink
Merge pull request #85 from lzanita09/patch-1
Browse files Browse the repository at this point in the history
Merged pull request #86 - Fixed setAdapter bug
  • Loading branch information
denizmveli committed Apr 6, 2014
2 parents 7539ead + 39d3b05 commit 18e9ae8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public void setAdapter(final ListAdapter adapter) {
}

mDataChanged = true;
mItemCount = adapter != null ? adapter.getCount() : 0;
mItemCount = mAdapter != null ? mAdapter.getCount() : 0;

if (adapter != null) {
adapter.registerDataSetObserver(mObserver);
Expand Down

0 comments on commit 18e9ae8

Please sign in to comment.