Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5d412a0 authored by Adam Powell's avatar Adam Powell
Browse files

Improve docs in BaseAdapter.

Change-Id: Idbe19f9b01132c28b4960515c23bd28e3729fd5d
parent 6ce9dfd8
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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();
    }