We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14b4c76 + f5d412a commit 2b2adbdCopy full SHA for 2b2adbd
1 file changed
core/java/android/widget/BaseAdapter.java
@@ -43,13 +43,18 @@ public void unregisterDataSetObserver(DataSetObserver observer) {
43
}
44
45
/**
46
- * Notifies the attached View that the underlying data has been changed
47
- * and it should refresh itself.
+ * Notifies the attached observers that the underlying data has been changed
+ * and any View reflecting the data set should refresh itself.
48
*/
49
public void notifyDataSetChanged() {
50
mDataSetObservable.notifyChanged();
51
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
+ */
58
public void notifyDataSetInvalidated() {
59
mDataSetObservable.notifyInvalidated();
60
0 commit comments