feat(ImageProvider): disable replace when detect empty image url

pull/1937/head
Xwite 2 years ago
parent 2f4f7f46b7
commit 6098260f45
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt

@ -114,6 +114,7 @@ object ImageProvider {
): Bitmap { ): Bitmap {
//src为空白时 可能被净化替换掉了 或者规则失效 //src为空白时 可能被净化替换掉了 或者规则失效
if (book.getUseReplaceRule() && src.isBlank()) { if (book.getUseReplaceRule() && src.isBlank()) {
book.setUseReplaceRule(false)
appCtx.toastOnUi(R.string.error_image_url_empty) appCtx.toastOnUi(R.string.error_image_url_empty)
} }
val vFile = BookHelp.getImage(book, src) val vFile = BookHelp.getImage(book, src)

Loading…
Cancel
Save