mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(coil): Use original size if it has ratio
Should fix flickering (or at least reduced it) Fixes GH-160
This commit is contained in:
parent
d002642697
commit
5d29c0a6cf
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
## Fixes
|
||||
- Fixed chapter number parsing (@Naputt1)
|
||||
- Fixed (or at least reduced) library flickering
|
||||
|
||||
## Other
|
||||
- Refactor chapter recognition (@stevenyomi)
|
||||
|
|
|
@ -13,6 +13,7 @@ import androidx.core.view.updateLayoutParams
|
|||
import coil3.dispose
|
||||
import coil3.size.Precision
|
||||
import coil3.size.Scale
|
||||
import coil3.size.Size
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.data.coil.loadManga
|
||||
import eu.kanade.tachiyomi.data.database.models.dominantCoverColors
|
||||
|
@ -131,6 +132,8 @@ class LibraryGridHolder(
|
|||
if (!fixedSize && !hasRatio) {
|
||||
precision(Precision.INEXACT)
|
||||
scale(Scale.FIT)
|
||||
} else if (hasRatio) {
|
||||
size(Size.ORIGINAL)
|
||||
}
|
||||
listener(
|
||||
onSuccess = { _, _ ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue