예제 #1
0
  public BaseImageList(ContentResolver resolver, Uri uri, int sort, String bucketId) {
    mSort = sort;
    mBaseUri = uri;
    mBucketId = bucketId;
    mContentResolver = resolver;
    mCursor = createCursor();

    if (mCursor == null) {
      Log.w(TAG, "createCursor returns null.");
    }

    // TODO: We need to clear the cache because we may "reopen" the image
    // list. After we implement the image list state, we can remove this
    // kind of usage.
    mCache.clear();
  }
예제 #2
0
 protected void invalidateCache() {
   mCache.clear();
 }