From 2306330fd001f9b3a86dd5b32c50a741df3e8300 Mon Sep 17 00:00:00 2001 From: Zakhar Timoshenko Date: Thu, 21 Jul 2022 00:06:24 +0300 Subject: [PATCH] Use `coverUrl` instead of `largeCoverUrl` in lists --- .../kotatsu/list/ui/model/ListModelConversionExt.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/koitharu/kotatsu/list/ui/model/ListModelConversionExt.kt b/app/src/main/java/org/koitharu/kotatsu/list/ui/model/ListModelConversionExt.kt index a7a8c26f6..b2f082a7e 100644 --- a/app/src/main/java/org/koitharu/kotatsu/list/ui/model/ListModelConversionExt.kt +++ b/app/src/main/java/org/koitharu/kotatsu/list/ui/model/ListModelConversionExt.kt @@ -14,7 +14,7 @@ fun Manga.toListModel(counter: Int, progress: Float) = MangaListModel( id = id, title = title, subtitle = tags.joinToString(", ") { it.title }, - coverUrl = largeCoverUrl ?: coverUrl, + coverUrl = coverUrl, manga = this, counter = counter, progress = progress, @@ -26,7 +26,7 @@ fun Manga.toListDetailedModel(counter: Int, progress: Float) = MangaListDetailed subtitle = altTitle, rating = if (hasRating) String.format("%.1f", rating * 5) else null, tags = tags.joinToString(", ") { it.title }, - coverUrl = largeCoverUrl ?: coverUrl, + coverUrl = coverUrl, manga = this, counter = counter, progress = progress, @@ -35,7 +35,7 @@ fun Manga.toListDetailedModel(counter: Int, progress: Float) = MangaListDetailed fun Manga.toGridModel(counter: Int, progress: Float) = MangaGridModel( id = id, title = title, - coverUrl = largeCoverUrl ?: coverUrl, + coverUrl = coverUrl, manga = this, counter = counter, progress = progress, @@ -91,4 +91,4 @@ private fun getErrorIcon(error: Throwable) = when (error) { is AuthRequiredException, is CloudFlareProtectedException -> R.drawable.ic_denied_large else -> R.drawable.ic_error_large -} \ No newline at end of file +}