/** * 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(); }
public final void notifyDataSetInvalidated() { mDataSetObservable.notifyInvalidated(); } }
/** * 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(); }
public final void notifyDataSetInvalidated() { mDataSetObservable.notifyInvalidated(); } }
/** * 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 final void notifyDataSetInvalidated() { observable.notifyInvalidated(); }
/** * 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(); } }
@SuppressWarnings("unused") public void notifyDataSetInvalidated() { mDataSetObservable.notifyInvalidated(); } }
/** * 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(); }
@SuppressWarnings("unused") public void notifyDataSetInvalidated() { mDataSetObservable.notifyInvalidated(); }
/** @hide */ protected void onDeactivateOrClose() { if (mSelfObserver != null) { mContentResolver.unregisterContentObserver(mSelfObserver); mSelfObserverRegistered = false; } mDataSetObservable.notifyInvalidated(); }
@Override public void notifyDataSetChanged() { if (getCount() > 0) { mDataSetObservable.notifyChanged(); } else { mDataSetObservable.notifyInvalidated(); } }
super.onDestroy(); mScheduler.shutdownNow(); mObservable.notifyInvalidated();
public class YourClass extends Something implements ListAdapter{ private final DataSetObservable mObservable = new DataSetObservable(); @Override public void registerDataSetObserver(DataSetObserver observer) { mObservable.registerObserver(observer); } @Override public void unregisterDataSetObserver(DataSetObserver observer) { mObservable.unregisterObserver(observer); } public void notifyDataSetChanged(){ mObservable.notifyChanged(); } public void notifyDataSetInvalidated(){ mObservable.notifyInvalidated(); }
mDataSetObservable.notifyInvalidated();