-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE after unmount SD card #170
Comments
Hi, |
I try unmount sdcard:
|
How I can set cacheDir after call init method? |
No way for current version. Let me think about a solution... |
For example provide a callback which will call to try get path for cache when current path not available |
Cache images on device's file system if SD card becomes unmounted
Hi, thanks for changes.
Log:
For fix in method tryLoadBitmap() make changes File cacheDir = imageFile.getParentFile();
if (cacheDir == null || (!cacheDir.exists() && !cacheDir.mkdirs())) {
imageFile = configuration.reserveDiscCache.get(uri);
cacheDir = imageFile.getParentFile();
if (cacheDir != null && !cacheDir.exists()) {
cacheDir.mkdirs()
}
}
|
|
|
Fixed since 1.8.3. UIL always check if disc cache is exists and create it if necessary. If no disc cache is available or there is not enough free space then UIL will load images in memory and display them anyway. |
Hi.
Thanks for such usefull library. I am using loader1.8.0, I found one problem in loading an image. If i enable cacheOnDisc and cacheInMemory, then set cache folder on sdcard and unmount sdcard, the image dosen't show.
It will be great, if cacheOnDisc failed but cacheInMemory is enabled, cache image to memory and show.
The text was updated successfully, but these errors were encountered: