Skip to content

Commit

Permalink
Merge pull request #5 from fRoSt13iT/master
Browse files Browse the repository at this point in the history
fix issue #4: Changing adpater throws an exception
  • Loading branch information
orhanobut committed Apr 1, 2015
2 parents 74176dd + 2b72fab commit cc6536e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void setAdapter(BaseAdapter adapter) {
throw new NullPointerException("Adapter may not be null");
}
if (this.adapter != null && this.dataSetObserver != null) {
adapter.unregisterDataSetObserver(dataSetObserver);
this.adapter.unregisterDataSetObserver(dataSetObserver);
}
this.adapter = adapter;
this.dataSetObserver = new AdapterDataSetObserver();
Expand Down

0 comments on commit cc6536e

Please sign in to comment.