summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adam Powell <adamp@google.com> 2011-09-27 12:06:33 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-09-27 12:06:33 -0700
commit2b2adbdda04c96592026e84243cbb0f90a2021c9 (patch)
tree4569ed34108acef7349630253988f0022089538f
parent14b4c769be93a7fa1b978a75199d6e3cdb4c07da (diff)
parentf5d412a0c707bfc3a5e27cdaaea8b2a4e8cb5d72 (diff)
Merge "Improve docs in BaseAdapter."
-rw-r--r--core/java/android/widget/BaseAdapter.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/core/java/android/widget/BaseAdapter.java b/core/java/android/widget/BaseAdapter.java
index 532fd766ec66..401fcb83499d 100644
--- a/core/java/android/widget/BaseAdapter.java
+++ b/core/java/android/widget/BaseAdapter.java
@@ -43,13 +43,18 @@ public abstract class BaseAdapter implements ListAdapter, SpinnerAdapter {
}
/**
- * Notifies the attached View that the underlying data has been changed
- * 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.
*/
public void notifyDataSetChanged() {
mDataSetObservable.notifyChanged();
}
-
+
+ /**
+ * Notifies the attached observers that the underlying data is no longer valid
+ * or available. Once invoked this adapter is no longer valid and should
+ * not report further data set changes.
+ */
public void notifyDataSetInvalidated() {
mDataSetObservable.notifyInvalidated();
}