pull/32/head
kunfei 5 years ago
parent 82be88ae53
commit 6122fcc4d4
  1. 4
      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) {

Loading…
Cancel
Save