Open mandrachek opened 11 years ago
Ugh. So with cbd.setBeingUsed(true), it looks like on some devices, I wind up with out of memory errors. :(
You can try using FileDescriptor to decode from DiskCache. keep decodeStream when putting CacheableBitmapDrawable to MemoryCache.
I loaded 300 high quality images in grid view. sorry my english is bad.
I've got a recycled bitmap issue cropping up when using a TransitionDrawable. I'm seeing this pretty consistently on an HTC Desire HD running 2.3.3, and sporadically on other devices. I'm using version 2.3 and the cache is configured for memory only.
I am able to get work around the issue by manually calling cbd.setBeingUsed(true); after pulling the bitmap from the cache, like so (and yes, mImageView is an instance of CacheableImageView):
The stack trace is: