From f9b566cdaf0065c167140ebd612981204e13963e Mon Sep 17 00:00:00 2001 From: AndyBernie Date: Tue, 18 Aug 2020 09:27:50 +0800 Subject: [PATCH] Update ChapterProvider.kt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 图片链接的referer为当前章节的链接chapter.url --- .../legado/app/ui/book/read/page/provider/ChapterProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index ccfe10564..c1e4bdf1e 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/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 -} \ No newline at end of file +}