Use coverUrl instead of largeCoverUrl in lists

This commit is contained in:
Zakhar Timoshenko
2022-07-21 00:06:24 +03:00
parent 0d1e85d0c2
commit 2306330fd0

View File

@@ -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
}
}