优化
This commit is contained in:
@@ -3,6 +3,7 @@ package io.legado.app.ui.book.read.page.entities
|
|||||||
|
|
||||||
import androidx.annotation.Keep
|
import androidx.annotation.Keep
|
||||||
import io.legado.app.data.entities.BookChapter
|
import io.legado.app.data.entities.BookChapter
|
||||||
|
import io.legado.app.data.entities.ReplaceRule
|
||||||
import kotlin.math.min
|
import kotlin.math.min
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -19,6 +20,8 @@ data class TextChapter(
|
|||||||
val sameTitleRemoved: Boolean,
|
val sameTitleRemoved: Boolean,
|
||||||
val isVip: Boolean,
|
val isVip: Boolean,
|
||||||
val isPay: Boolean,
|
val isPay: Boolean,
|
||||||
|
//起效的替换规则
|
||||||
|
val effectiveReplaceRules: List<ReplaceRule>?
|
||||||
) {
|
) {
|
||||||
|
|
||||||
fun getPage(index: Int): TextPage? {
|
fun getPage(index: Int): TextPage? {
|
||||||
|
|||||||
@@ -220,7 +220,9 @@ object ChapterProvider {
|
|||||||
bookChapter.index, displayTitle,
|
bookChapter.index, displayTitle,
|
||||||
textPages, chapterSize,
|
textPages, chapterSize,
|
||||||
bookContent.sameTitleRemoved,
|
bookContent.sameTitleRemoved,
|
||||||
bookChapter.isVip, bookChapter.isPay
|
bookChapter.isVip,
|
||||||
|
bookChapter.isPay,
|
||||||
|
bookContent.effectiveReplaceRules
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user