Skip to content

Commit 2b2adbd

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Improve docs in BaseAdapter."
2 parents 14b4c76 + f5d412a commit 2b2adbd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

core/java/android/widget/BaseAdapter.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,18 @@ public void unregisterDataSetObserver(DataSetObserver observer) {
4343
}
4444

4545
/**
46-
* Notifies the attached View that the underlying data has been changed
47-
* and it should refresh itself.
46+
* Notifies the attached observers that the underlying data has been changed
47+
* and any View reflecting the data set should refresh itself.
4848
*/
4949
public void notifyDataSetChanged() {
5050
mDataSetObservable.notifyChanged();
5151
}
52-
52+
53+
/**
54+
* Notifies the attached observers that the underlying data is no longer valid
55+
* or available. Once invoked this adapter is no longer valid and should
56+
* not report further data set changes.
57+
*/
5358
public void notifyDataSetInvalidated() {
5459
mDataSetObservable.notifyInvalidated();
5560
}

0 commit comments

Comments
 (0)