|
|
@ -105,7 +105,7 @@ object ChapterProvider { |
|
|
|
if (durY < visibleHeight) { |
|
|
|
if (durY < visibleHeight) { |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
durY = 0 |
|
|
|
durY = layout.getLineBottom(lineIndex) - layout.getLineTop(lineIndex) |
|
|
|
textPages.add(TextPage()) |
|
|
|
textPages.add(TextPage()) |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
} |
|
|
|
} |
|
|
@ -182,7 +182,7 @@ object ChapterProvider { |
|
|
|
if (durY < visibleHeight) { |
|
|
|
if (durY < visibleHeight) { |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
durY = 0 |
|
|
|
durY = layout.getLineBottom(lineIndex) - layout.getLineTop(lineIndex) |
|
|
|
textPages.add(TextPage()) |
|
|
|
textPages.add(TextPage()) |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
textPages.last().textLines.add(textLine) |
|
|
|
} |
|
|
|
} |
|
|
|