Fix crashes related to MangaCover

This commit is contained in:
Jobobby04 2024-02-17 18:52:58 -05:00
parent 9f6f15f64d
commit e64bddf9d5

View File

@ -16,7 +16,12 @@ data class MangaCover(
val lastModified: Long, val lastModified: Long,
) { ) {
// SY --> // SY -->
val url: String = getCustomMangaInfo.get(mangaId)?.thumbnailUrl ?: ogUrl!! private val customThumbnailUrl = if (isMangaFavorite) {
getCustomMangaInfo.get(mangaId)?.thumbnailUrl
} else {
null
}
val url: String? = customThumbnailUrl ?: ogUrl
companion object { companion object {
private val getCustomMangaInfo: GetCustomMangaInfo by injectLazy() private val getCustomMangaInfo: GetCustomMangaInfo by injectLazy()