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. 2
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -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())

Loading…
Cancel
Save