添加内置存储空间或 Sd Card 检测

This commit is contained in:
seven332 committed 2014-04-02 19:56:49 +08:00
1 parent 7ac8878f83
commit 1c11ac38ea
9 files changed
+58 -14

No files matched your search

+5 -4
View File
@@ -78,10 +78,11 @@ public class ImageLoadManager {
}
LoadImageView liv = curLoadTask.liv;
String key = liv.getKey();
Bitmap bitmap;
if ((bitmap = mMemoryCache.get(key)) == null) {
bitmap = (Bitmap)mDiskCache.get(key, Util.BITMAP);
if (bitmap != null)
Bitmap bitmap = null;
if (mMemoryCache == null || (bitmap = mMemoryCache.get(key)) == null) {
if (mDiskCache != null
&& (bitmap = (Bitmap)mDiskCache.get(key, Util.BITMAP)) != null
&& mMemoryCache != null)
mMemoryCache.put(key, bitmap);
}