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,