pull/885/head^2
gedoor 4 years ago
parent 1c4b5a54cd
commit 25e3f65b9a
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/page/entities/TextLine.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -12,7 +12,8 @@ data class TextLine(
var lineBase: Float = 0f,
var lineBottom: Float = 0f,
val isTitle: Boolean = false,
var isReadAloud: Boolean = false
var isReadAloud: Boolean = false,
var isImage: Boolean = false
) {
val charSize: Int get() = textChars.size

@ -211,7 +211,7 @@ object ChapterProvider {
}
}
}
val textLine = TextLine()
val textLine = TextLine(isImage = true)
textLine.lineTop = durY
durY += height
textLine.lineBottom = durY

Loading…
Cancel
Save