diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt index 6124c5956..6c502615e 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt @@ -78,8 +78,7 @@ object ChapterProvider { fun getTextChapter( bookChapter: BookChapter, content: String, - chapterSize: Int, - isHtml: Boolean = false + chapterSize: Int ): TextChapter { val textPages = arrayListOf() val pageLines = arrayListOf() diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt index 19763d4f8..6b946f7d0 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt @@ -26,7 +26,7 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at style = Paint.Style.FILL } } - var textPage: TextPage? = null + private var textPage: TextPage? = null fun setContent(textPage: TextPage?) { this.textPage = textPage