- /**
- * Remove from cache the remoteId passed
- * @param fileRemoteId: remote id of file passed
- */
- private void removeFileFromCache(String fileRemoteId){
- Context context = getContext();
- if (context != null) {
- synchronized (thumbnailDiskCacheLock) {
- try {
- mThumbnailCache = new DiskLruImageCache(context, "thumbnailCache",
- DISK_CACHE_SIZE, mCompressFormat, mCompressQuality);
-
- mThumbnailCache.removeKey(fileRemoteId);
-
- } catch (Exception e) {
- Log_OC.d(TAG, "Thumbnail cache could not be opened ", e);
- mThumbnailCache = null;
- }
- thumbnailDiskCacheLock.notifyAll(); // Wake any waiting threads
- }
- }
- }
-