mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(coil): Use original size and in-exact precision by default
This commit is contained in:
parent
1d825e25c0
commit
e1c0d1a9d7
1 changed files with 4 additions and 7 deletions
|
@ -129,13 +129,10 @@ class LibraryGridHolder(
|
|||
if ((adapter.recyclerView.context as? Activity)?.isDestroyed == true) return
|
||||
binding.coverThumbnail.loadManga(manga.cover()) {
|
||||
val hasRatio = binding.coverThumbnail.layoutParams.height != ViewGroup.LayoutParams.WRAP_CONTENT
|
||||
if (!fixedSize) {
|
||||
if (!hasRatio) {
|
||||
precision(Precision.INEXACT)
|
||||
scale(Scale.FIT)
|
||||
} else {
|
||||
size(Size.ORIGINAL)
|
||||
}
|
||||
size(Size.ORIGINAL)
|
||||
precision(Precision.INEXACT)
|
||||
if (!fixedSize && !hasRatio) {
|
||||
scale(Scale.FIT)
|
||||
}
|
||||
listener(
|
||||
onSuccess = { _, _ ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue