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,
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user