mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
a4eb2a1408
commit
4d283c5dc2
@ -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? {
|
||||
|
@ -220,7 +220,9 @@ object ChapterProvider {
|
||||
bookChapter.index, displayTitle,
|
||||
textPages, chapterSize,
|
||||
bookContent.sameTitleRemoved,
|
||||
bookChapter.isVip, bookChapter.isPay
|
||||
bookChapter.isVip,
|
||||
bookChapter.isPay,
|
||||
bookContent.effectiveReplaceRules
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user