添加内置存储空间或 Sd Card 检测
This commit is contained in:
1 parent
7ac8878f83
commit
1c11ac38ea
9 files changed
+58
-14
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user