|
|
|
@@ -115,8 +115,6 @@ data class Book(
|
|
|
|
|
|
|
|
|
|
fun getUnreadChapterNum() = max(totalChapterNum - durChapterIndex - 1, 0)
|
|
|
|
|
|
|
|
|
|
fun getDisplayTag() = if (customTag.isNullOrBlank()) kind else customTag
|
|
|
|
|
|
|
|
|
|
fun getDisplayCover() = if (customCoverUrl.isNullOrEmpty()) coverUrl else customCoverUrl
|
|
|
|
|
|
|
|
|
|
fun getDisplayIntro() = if (customIntro.isNullOrEmpty()) intro else customIntro
|
|
|
|
@@ -178,11 +176,6 @@ data class Book(
|
|
|
|
|
config().imageStyle = imageStyle
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun setDelTag(tag: Long) {
|
|
|
|
|
config().delTag =
|
|
|
|
|
if ((config().delTag and tag) == tag) config().delTag and tag.inv() else config().delTag or tag
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun getDelTag(tag: Long): Boolean {
|
|
|
|
|
return config().delTag and tag == tag
|
|
|
|
|
}
|
|
|
|
@@ -259,7 +252,6 @@ data class Book(
|
|
|
|
|
companion object {
|
|
|
|
|
const val hTag = 2L
|
|
|
|
|
const val rubyTag = 4L
|
|
|
|
|
const val imgTag = 8L
|
|
|
|
|
const val imgStyleDefault = "DEFAULT"
|
|
|
|
|
const val imgStyleFull = "FULL"
|
|
|
|
|
const val imgStyleText = "TEXT"
|
|
|
|
|