From f5702ccbcfc64e113d6086bc605dd94eb8b7881a Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Wed, 25 Jan 2023 14:13: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 --- .../io/legado/app/ui/association/VerificationCodeDialog.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/association/VerificationCodeDialog.kt b/app/src/main/java/io/legado/app/ui/association/VerificationCodeDialog.kt index db7e4d65a..11c53e6c1 100644 --- a/app/src/main/java/io/legado/app/ui/association/VerificationCodeDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/VerificationCodeDialog.kt @@ -103,7 +103,8 @@ class VerificationCodeDialog() : BaseDialogFragment(R.layout.dialog_verification transition: Transition? ) { view ?: return - ImageProvider.bitmapLruCache.put(url, resource) + val bitmap = resource.copy(resource.config, true) + ImageProvider.bitmapLruCache.put(url, bitmap) binding.verificationCodeImageView.setImageBitmap(resource) }