@Override public void notifyDataSetChanged() { super.notifyDataSetChanged(); if (LOCAL_LOGV) { Log.v(TAG, "MessageListAdapter.notifyDataSetChanged()."); } mMessageItemCache.evictAll(); if (mOnDataSetChangedListener != null) { mOnDataSetChangedListener.onDataSetChanged(this); } }
public void cancelBackgroundLoading() { mMessageItemCache.evictAll(); // causes entryRemoved to be called for each MessageItem // in the cache which causes us to cancel loading of // background pdu's and images. }