NullpointerException. mRecyclePolicy is null
recodyx opened this issue · 2 comments
recodyx commented
Hi.
Getting NullpointerException if MemoryCache is disabled.
BitmapLruCache.java:560
...
BitmapLruCache.Builder builder = new BitmapLruCache.Builder(App.getContext());
builder.setMemoryCacheEnabled(false);
builder.setDiskCacheEnabled(true).setDiskCacheLocation(cacheLocation);
...
Feature?
QuadFlask commented
+1
I want yo use only as disk cache too, but got exception.
builder.setMemoryCacheEnabled(true).setMemoryCacheMaxSize(1);
It works well. But this is stupid solution I think.
formatBCE commented
+1 too. Strange behavior.