Skip to content
This repository was archived by the owner on Oct 15, 2018. It is now read-only.

added purgeMemoryCache #49

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions library/src/uk/co/senab/bitmapcache/BitmapLruCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,12 @@ public void trimMemory() {
}
}

public void purgeMemoryCache() {
if (null != mMemoryCache) {
mMemoryCache.evictAll();
}
}

synchronized void setDiskCache(DiskLruCache diskCache) {
mDiskCache = diskCache;

Expand Down