|
|
@ -25,7 +25,7 @@ object ChapterProvider { |
|
|
|
val spannableStringBuilder = SpannableStringBuilder(surplusText) |
|
|
|
val spannableStringBuilder = SpannableStringBuilder(surplusText) |
|
|
|
if (pageIndex == 0) { |
|
|
|
if (pageIndex == 0) { |
|
|
|
var end = surplusText.indexOf("\n") |
|
|
|
var end = surplusText.indexOf("\n") |
|
|
|
if (end == -1) end = surplusText.length.minus(1) |
|
|
|
if (end == -1) end = surplusText.length |
|
|
|
spannableStringBuilder.setSpan( |
|
|
|
spannableStringBuilder.setSpan( |
|
|
|
titleSpan, |
|
|
|
titleSpan, |
|
|
|
0, |
|
|
|
0, |
|
|
|