mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(coil): Don't use original size
Caused flickering if cached image is smaller than the original image. Still flicker sometimes if the cached image is too small (more than 1 pixel differences)
This commit is contained in:
parent
d41f9359f1
commit
4f17048da7
1 changed files with 0 additions and 3 deletions
|
@ -7,7 +7,6 @@ import coil3.imageLoader
|
|||
import coil3.request.Disposable
|
||||
import coil3.request.ImageRequest
|
||||
import coil3.size.Precision
|
||||
import coil3.size.SizeResolver
|
||||
import coil3.target.ImageViewTarget
|
||||
import eu.kanade.tachiyomi.data.coil.CoverViewTarget
|
||||
import eu.kanade.tachiyomi.data.coil.LibraryMangaImageTarget
|
||||
|
@ -23,7 +22,6 @@ fun ImageView.loadManga(
|
|||
val request = ImageRequest.Builder(context)
|
||||
.data(manga.cover())
|
||||
.target(LibraryMangaImageTarget(this, manga))
|
||||
.size(SizeResolver.ORIGINAL)
|
||||
.precision(Precision.INEXACT)
|
||||
.apply(builder)
|
||||
.build()
|
||||
|
@ -42,7 +40,6 @@ fun ImageView.loadManga(
|
|||
val request = ImageRequest.Builder(context)
|
||||
.data(cover)
|
||||
.target(target ?: CoverViewTarget(this, progress))
|
||||
.size(SizeResolver.ORIGINAL)
|
||||
.precision(Precision.INEXACT)
|
||||
.apply(builder)
|
||||
.build()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue