|
|
@@ -42,6 +42,10 @@ public class LocalCacheUtils { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public boolean SetBitmapFile(ImageView ivPic, String name, String url) { |
|
|
|
if((!name.contains("png")&&!name.contains("jpg")&&!name.contains("jpeg"))){ |
|
|
|
ivPic.setImageResource(R.mipmap.loading123); |
|
|
|
return true; |
|
|
|
} |
|
|
|
if(name.contains(CACHE_PATH)){ |
|
|
|
name = name.replace(CACHE_PATH,""); |
|
|
|
} |
|
|
|