Use coverUrl instead of largeCoverUrl in lists
This commit is contained in:
@@ -14,7 +14,7 @@ fun Manga.toListModel(counter: Int, progress: Float) = MangaListModel(
|
|||||||
id = id,
|
id = id,
|
||||||
title = title,
|
title = title,
|
||||||
subtitle = tags.joinToString(", ") { it.title },
|
subtitle = tags.joinToString(", ") { it.title },
|
||||||
coverUrl = largeCoverUrl ?: coverUrl,
|
coverUrl = coverUrl,
|
||||||
manga = this,
|
manga = this,
|
||||||
counter = counter,
|
counter = counter,
|
||||||
progress = progress,
|
progress = progress,
|
||||||
@@ -26,7 +26,7 @@ fun Manga.toListDetailedModel(counter: Int, progress: Float) = MangaListDetailed
|
|||||||
subtitle = altTitle,
|
subtitle = altTitle,
|
||||||
rating = if (hasRating) String.format("%.1f", rating * 5) else null,
|
rating = if (hasRating) String.format("%.1f", rating * 5) else null,
|
||||||
tags = tags.joinToString(", ") { it.title },
|
tags = tags.joinToString(", ") { it.title },
|
||||||
coverUrl = largeCoverUrl ?: coverUrl,
|
coverUrl = coverUrl,
|
||||||
manga = this,
|
manga = this,
|
||||||
counter = counter,
|
counter = counter,
|
||||||
progress = progress,
|
progress = progress,
|
||||||
@@ -35,7 +35,7 @@ fun Manga.toListDetailedModel(counter: Int, progress: Float) = MangaListDetailed
|
|||||||
fun Manga.toGridModel(counter: Int, progress: Float) = MangaGridModel(
|
fun Manga.toGridModel(counter: Int, progress: Float) = MangaGridModel(
|
||||||
id = id,
|
id = id,
|
||||||
title = title,
|
title = title,
|
||||||
coverUrl = largeCoverUrl ?: coverUrl,
|
coverUrl = coverUrl,
|
||||||
manga = this,
|
manga = this,
|
||||||
counter = counter,
|
counter = counter,
|
||||||
progress = progress,
|
progress = progress,
|
||||||
@@ -91,4 +91,4 @@ private fun getErrorIcon(error: Throwable) = when (error) {
|
|||||||
is AuthRequiredException,
|
is AuthRequiredException,
|
||||||
is CloudFlareProtectedException -> R.drawable.ic_denied_large
|
is CloudFlareProtectedException -> R.drawable.ic_denied_large
|
||||||
else -> R.drawable.ic_error_large
|
else -> R.drawable.ic_error_large
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user