diff --git a/live/src/main/java/com/yunbao/live/utils/LoadDian9TuUtil.java b/live/src/main/java/com/yunbao/live/utils/LoadDian9TuUtil.java index 340403b6f..47d5afe5e 100644 --- a/live/src/main/java/com/yunbao/live/utils/LoadDian9TuUtil.java +++ b/live/src/main/java/com/yunbao/live/utils/LoadDian9TuUtil.java @@ -33,15 +33,13 @@ public class LoadDian9TuUtil { } } Glide.with(context) - .asFile() + .asBitmap() .load(imgUrl) - .into(new CustomTarget() { + .into(new CustomTarget() { @Override - public void onResourceReady(@NonNull File resource, @Nullable Transition transition) { + public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition transition) { try { - FileInputStream is = new FileInputStream(resource); - setNinePathImage(context, imageView, BitmapFactory.decodeStream(is), position); - is.close(); + setNinePathImage(context, imageView, resource, position); } catch (Exception e) { e.printStackTrace(); }