|
|
|
@ -122,7 +122,7 @@ object ChapterProvider { |
|
|
|
|
imageStyle: String? |
|
|
|
|
): Float { |
|
|
|
|
var durY = y |
|
|
|
|
ImageProvider.getImage(book, chapter.index, src)?.let { |
|
|
|
|
ImageProvider.getImage(book, chapter.index, src, chapter.url)?.let { |
|
|
|
|
if (durY > visibleHeight) { |
|
|
|
|
textPages.last().height = durY |
|
|
|
|
textPages.add(TextPage()) |
|
|
|
@ -453,4 +453,4 @@ object ChapterProvider { |
|
|
|
|
|
|
|
|
|
val TextPaint.textHeight: Float |
|
|
|
|
get() = fontMetrics.descent - fontMetrics.ascent + fontMetrics.leading |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|