From 03152904c50f1d853f80e6819b1081b85c1868cb Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 21 Feb 2020 18:44:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/read/page/ChapterProvider.kt | 3 +-- .../java/io/legado/app/ui/book/read/page/ContentTextView.kt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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