예제 #1
0
  @Override
  public void notifyDataSetChanged() {
    super.notifyDataSetChanged();
    if (LOCAL_LOGV) {
      Log.v(TAG, "MessageListAdapter.notifyDataSetChanged().");
    }

    mMessageItemCache.evictAll();

    if (mOnDataSetChangedListener != null) {
      mOnDataSetChangedListener.onDataSetChanged(this);
    }
  }
예제 #2
0
 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.
 }