Skip to content
Snippets Groups Projects
Commit 9268a12a authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

no bitmap reuse before HoneyComb

parent 05158b4a
No related branches found
Tags 1.5.90
No related merge requests found
......@@ -84,7 +84,7 @@ public class BitmapCache {
protected void entryRemoved(boolean evicted, String key, CacheableBitmap oldValue, CacheableBitmap newValue) {
if (evicted) {
mCachedBitmaps.remove(oldValue.getReference());
if (oldValue.get() != null && !TextUtils.equals(key, CONE_KEY) && !TextUtils.equals(key, CONE_O_KEY))
if (mReusableBitmaps != null && oldValue.get() != null && !TextUtils.equals(key, CONE_KEY) && !TextUtils.equals(key, CONE_O_KEY))
addReusableBitmapRef(oldValue.getReference());
}
}
......@@ -152,7 +152,7 @@ public class BitmapCache {
return bitmap;
}
public synchronized void addReusableBitmapRef(SoftReference<Bitmap> ref){
private synchronized void addReusableBitmapRef(SoftReference<Bitmap> ref){
mReusableBitmaps.add(ref);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment