From 6b1106f1c18b0f924567df61f0df5f9d80535842 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Fri, 21 Mar 2014 19:11:20 +0100 Subject: [PATCH] method to allow user to use the bitmap pool feature --- .../src/uk/co/senab/bitmapcache/BitmapLruCache.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/src/uk/co/senab/bitmapcache/BitmapLruCache.java b/library/src/uk/co/senab/bitmapcache/BitmapLruCache.java index f651a3b..a8e82fa 100644 --- a/library/src/uk/co/senab/bitmapcache/BitmapLruCache.java +++ b/library/src/uk/co/senab/bitmapcache/BitmapLruCache.java @@ -317,6 +317,16 @@ public CacheableBitmapDrawable getFromMemoryCache(final String url) { return result; } + + public Bitmap getBitmapFromRemoved(final int width, final int height) { + if (null != mMemoryCache) { + synchronized (mMemoryCache) { + return mMemoryCache.getBitmapFromRemoved(width, height); + } + } + return null; + } + /** * @return true if the Disk Cache is enabled. */