From 6e83e979c9ccfbdfb099b7058dc56f354ccb4e88 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 19 Apr 2022 13:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/widget/dialog/PhotoDialog.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/dialog/PhotoDialog.kt b/app/src/main/java/io/legado/app/ui/widget/dialog/PhotoDialog.kt index 49f624f38..d5aba7ae9 100644 --- a/app/src/main/java/io/legado/app/ui/widget/dialog/PhotoDialog.kt +++ b/app/src/main/java/io/legado/app/ui/widget/dialog/PhotoDialog.kt @@ -40,7 +40,8 @@ class PhotoDialog() : BaseDialogFragment(R.layout.dialog_photo_view) { .error(R.drawable.image_loading_error) .into(binding.photoView) } else { - BookCover.load(requireContext(), path = src) + ImageLoader.load(requireContext(), src) + .error(BookCover.defaultDrawable) .into(binding.photoView) } }