Update ChapterProvider.kt

图片链接的referer为当前章节的链接chapter.url
pull/314/head
AndyBernie 4 years ago committed by GitHub
parent deda8c40a5
commit f9b566cdaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -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
}
}

Loading…
Cancel
Save