From 6122fcc4d4984618235545a86ee29883e5a25429 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 5 Aug 2019 12:34:51 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/entities/Book.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/entities/Book.kt b/app/src/main/java/io/legado/app/data/entities/Book.kt index dae0621d8..d86bd415f 100644 --- a/app/src/main/java/io/legado/app/data/entities/Book.kt +++ b/app/src/main/java/io/legado/app/data/entities/Book.kt @@ -55,9 +55,9 @@ data class Book( fun getUnreadChapterNum() = max(totalChapterNum - durChapterIndex - 1, 0) - fun getDisplayCover() = customCoverUrl ?: coverUrl + fun getDisplayCover() = if (customCoverUrl.isNullOrEmpty()) coverUrl else customCoverUrl - fun getDisplayIntro() = customIntro ?: intro + fun getDisplayIntro() = if (customIntro.isNullOrEmpty()) intro else customIntro private fun initVariableMap() { if (variableMap == null) {