验证码图片启用内存缓存 免除查看大图时重新下载

pull/2351/head
Xwite 2 years ago committed by GitHub
parent 94559472dc
commit 1104f7bde3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/io/legado/app/ui/association/VerificationCodeDialog.kt

@ -67,7 +67,7 @@ class VerificationCodeDialog() : BaseDialogFragment(R.layout.dialog_verification
}
}.error(R.drawable.image_loading_error)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.skipMemoryCache(true)
//.skipMemoryCache(true)
.into(verificationCodeImageView)
verificationCodeImageView.setOnClickListener {
showDialogFragment(PhotoDialog(imageUrl, sourceOrigin))
@ -105,4 +105,4 @@ class VerificationCodeDialog() : BaseDialogFragment(R.layout.dialog_verification
activity?.finish()
}
}
}

Loading…
Cancel
Save