Skip to content

Commit f5d412a

Browse files
committed
Improve docs in BaseAdapter.
Change-Id: Idbe19f9b01132c28b4960515c23bd28e3729fd5d
1 parent 6ce9dfd commit f5d412a

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)