This commit is contained in:
kunfei 2023-07-16 22:47:37 +08:00
parent a4eb2a1408
commit 4d283c5dc2
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package io.legado.app.ui.book.read.page.entities
import androidx.annotation.Keep
import io.legado.app.data.entities.BookChapter
import io.legado.app.data.entities.ReplaceRule
import kotlin.math.min
/**
@ -19,6 +20,8 @@ data class TextChapter(
val sameTitleRemoved: Boolean,
val isVip: Boolean,
val isPay: Boolean,
//起效的替换规则
val effectiveReplaceRules: List<ReplaceRule>?
) {
fun getPage(index: Int): TextPage? {

View File

@ -220,7 +220,9 @@ object ChapterProvider {
bookChapter.index, displayTitle,
textPages, chapterSize,
bookContent.sameTitleRemoved,
bookChapter.isVip, bookChapter.isPay
bookChapter.isVip,
bookChapter.isPay,
bookContent.effectiveReplaceRules
)
}