mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
chore: Convert all cover usage to use MangaCover data class
This commit is contained in:
parent
839f762fa7
commit
d002642697
10 changed files with 21 additions and 11 deletions
|
@ -32,6 +32,7 @@ import eu.kanade.tachiyomi.util.system.launchIO
|
|||
import kotlinx.coroutines.MainScope
|
||||
import uy.kohesive.injekt.Injekt
|
||||
import uy.kohesive.injekt.api.get
|
||||
import yokai.domain.manga.models.cover
|
||||
import yokai.presentation.widget.components.CoverHeight
|
||||
import yokai.presentation.widget.components.CoverWidth
|
||||
import yokai.presentation.widget.components.LockedWidget
|
||||
|
@ -97,7 +98,7 @@ class UpdatesGridGlanceWidget(
|
|||
.map { it.first }
|
||||
.map { updatesView ->
|
||||
val request = ImageRequest.Builder(app)
|
||||
.data(updatesView)
|
||||
.data(updatesView.cover())
|
||||
.memoryCachePolicy(CachePolicy.DISABLED)
|
||||
.precision(Precision.EXACT)
|
||||
.size(widthPx, heightPx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue