|
|
|
@ -24,8 +24,8 @@ object ChapterProvider { |
|
|
|
|
while (surplusText.isNotEmpty()) { |
|
|
|
|
val spannableStringBuilder = SpannableStringBuilder(surplusText) |
|
|
|
|
if (pageIndex == 0) { |
|
|
|
|
var end = surplusText.indexOf("\n") |
|
|
|
|
if (end == -1) end = surplusText.length |
|
|
|
|
val end = surplusText.indexOf("\n") |
|
|
|
|
if (end > 0) { |
|
|
|
|
spannableStringBuilder.setSpan( |
|
|
|
|
titleSpan, |
|
|
|
|
0, |
|
|
|
@ -33,6 +33,7 @@ object ChapterProvider { |
|
|
|
|
Spannable.SPAN_INCLUSIVE_EXCLUSIVE |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
textView.text = spannableStringBuilder |
|
|
|
|
pageLengths.add(textView.getCharNum()) |
|
|
|
|
textPages.add( |
|
|
|
|