Explorar el Código

修改

炒锅机器人_一拖多
liup hace 3 meses
padre
commit
7129fa5546
Se han modificado 2 ficheros con 5 adiciones y 1 borrados
  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 Ver fichero

@@ -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 Ver fichero

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


Cargando…
Cancelar
Guardar