Browse Source

修改

炒锅机器人_一拖多
liup 3 months ago
parent
commit
7129fa5546
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      app/src/main/java/com/bonait/bnframework/common/image/MyBitmapUtils.java
  2. +4
    -0
      app/src/main/java/com/bonait/bnframework/common/image/utils/LocalCacheUtils.java

+ 1
- 1
app/src/main/java/com/bonait/bnframework/common/image/MyBitmapUtils.java View File

@@ -42,7 +42,7 @@ public class MyBitmapUtils {
}

//网络缓存
if(url.contains("http"))
if(url.contains("http")&&(url.contains("png")||url.contains("jpg")||url.contains("jpeg")))
{
LogUtils.d("disPlay getBitmapFromNet url="+url);
mNetCacheUtils.getBitmapFromNet(ivPic,url);


+ 4
- 0
app/src/main/java/com/bonait/bnframework/common/image/utils/LocalCacheUtils.java View File

@@ -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,"");
}


Loading…
Cancel
Save