You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using version 1.9.2 and I think there is a problem with disk caching and synchronously image loading. Synchrounously loaded images are stored in the memory cache but not in the disk cache, although the disk cache is enabled in the options.
The relevant parts of my code:
public void init {
......
//using memory- and disk-cache
mImageOptions = new DisplayImageOptions.Builder()
.cacheInMemory(true)
.cacheOnDisk(true)
.build();
....
}
public Bitmap loadImageSynchronly(String url) {
Bitmap returnImg = mImageLoader.loadImageSync(url,mImageOptions);
return returnImg;
}
public boolean isInDiskCache(String uri){
if(null == DiskCacheUtils.findInCache(uri, ImageLoader.getInstance().getDiskCache())){
return false;
}
return true;
}
The unit test which shows that disk caching doesn't work:
I am using version 1.9.2 and I think there is a problem with disk caching and synchronously image loading. Synchrounously loaded images are stored in the memory cache but not in the disk cache, although the disk cache is enabled in the options.
The relevant parts of my code:
The unit test which shows that disk caching doesn't work:
If you wish I can provide an example app including unit tests which show the problem.
The text was updated successfully, but these errors were encountered: