|
|
@ -124,6 +124,7 @@ object ChapterProvider { |
|
|
|
var durY = y |
|
|
|
var durY = y |
|
|
|
ImageProvider.getImage(book, chapter.index, src)?.let { |
|
|
|
ImageProvider.getImage(book, chapter.index, src)?.let { |
|
|
|
if (durY > visibleHeight) { |
|
|
|
if (durY > visibleHeight) { |
|
|
|
|
|
|
|
textPages.last().height = durY |
|
|
|
textPages.add(TextPage()) |
|
|
|
textPages.add(TextPage()) |
|
|
|
durY = 0f |
|
|
|
durY = 0f |
|
|
|
} |
|
|
|
} |
|
|
@ -144,6 +145,7 @@ object ChapterProvider { |
|
|
|
height = visibleHeight |
|
|
|
height = visibleHeight |
|
|
|
} |
|
|
|
} |
|
|
|
if (durY + height > visibleHeight) { |
|
|
|
if (durY + height > visibleHeight) { |
|
|
|
|
|
|
|
textPages.last().height = durY |
|
|
|
textPages.add(TextPage()) |
|
|
|
textPages.add(TextPage()) |
|
|
|
durY = 0f |
|
|
|
durY = 0f |
|
|
|
} |
|
|
|
} |
|
|
|