|
|
@ -204,11 +204,12 @@ object ChapterProvider { |
|
|
|
book: Book, |
|
|
|
book: Book, |
|
|
|
chapter: BookChapter, |
|
|
|
chapter: BookChapter, |
|
|
|
src: String, |
|
|
|
src: String, |
|
|
|
absStartX: Int, |
|
|
|
x: Int, |
|
|
|
y: Float, |
|
|
|
y: Float, |
|
|
|
textPages: ArrayList<TextPage>, |
|
|
|
textPages: ArrayList<TextPage>, |
|
|
|
imageStyle: String?, |
|
|
|
imageStyle: String?, |
|
|
|
): Float { |
|
|
|
): Float { |
|
|
|
|
|
|
|
val absStartX = x - paddingLeft |
|
|
|
var durY = y |
|
|
|
var durY = y |
|
|
|
ImageProvider.getImage(book, chapter.index, src, ReadBook.bookSource)?.let { |
|
|
|
ImageProvider.getImage(book, chapter.index, src, ReadBook.bookSource)?.let { |
|
|
|
if (durY > visibleHeight) { |
|
|
|
if (durY > visibleHeight) { |
|
|
|