pull/1785/head
kunfei 3 years ago
parent a6e975ee57
commit a99e0876e7
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt

@ -162,7 +162,6 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
val bitmap = ImageProvider.getImage( val bitmap = ImageProvider.getImage(
book, book,
textChar.charData, textChar.charData,
ReadBook.bookSource,
(textChar.end - textChar.start).toInt(), (textChar.end - textChar.start).toInt(),
(lineBottom - lineTop).toInt() (lineBottom - lineTop).toInt()
) )

@ -61,7 +61,6 @@ object ImageProvider {
fun getImage( fun getImage(
book: Book, book: Book,
src: String, src: String,
bookSource: BookSource?,
width: Int, width: Int,
height: Int height: Int
): Bitmap { ): Bitmap {

Loading…
Cancel
Save