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