Update ImageProvider.kt

图片链接的referrer应为baseUrl
pull/311/head
AndyBernie 4 years ago committed by GitHub
parent 489b213501
commit 13e209133c
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/ImageProvider.kt

@ -49,7 +49,7 @@ object ImageProvider {
out.close()
}
} else if (!onUi) {
HttpHelper.getBytes(src, src)?.let {
HttpHelper.getBytes(src, baseUrl)?.let {
FileUtils.createFileIfNotExist(vFile.absolutePath).writeBytes(it)
}
}
@ -87,4 +87,4 @@ object ImageProvider {
}
}
}
}

Loading…
Cancel
Save