提交 800b9099 编写于 作者: S Sam Judd

handle exceptions loading from disk cache

上级 1cea25dd
......@@ -535,7 +535,13 @@ public class ImageManager {
@Override
public void run() {
Bitmap result = getFromDiskCache(key);
Bitmap result = null;
try {
result = getFromDiskCache(key);
} catch (Exception e) {
handleException(e);
}
if (result == null) {
try {
resizeWithPool();
......@@ -547,7 +553,6 @@ public class ImageManager {
}
}
private Bitmap getFromDiskCache(String key) {
Bitmap result = null;
final InputStream is = diskCache.get(key);
......@@ -647,7 +652,6 @@ public class ImageManager {
bitmap.compress(format, bitmapCompressQuality, os);
}
});
}
private void putInMemoryCache(String key, final Bitmap bitmap) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册