From 4412382fa2f5242697cd34a3fc6f066faef46a30 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Aug 2019 22:30:57 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/widget/page/ChapterProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/widget/page/ChapterProvider.kt index 68165caa5..c69462355 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/ChapterProvider.kt @@ -25,7 +25,7 @@ object ChapterProvider { val spannableStringBuilder = SpannableStringBuilder(surplusText) if (pageIndex == 0) { var end = surplusText.indexOf("\n") - if (end == -1) end = surplusText.length.minus(1) + if (end == -1) end = surplusText.length spannableStringBuilder.setSpan( titleSpan, 0,