|
|
@ -9,6 +9,7 @@ import android.os.Message |
|
|
|
import android.text.TextUtils |
|
|
|
import android.text.TextUtils |
|
|
|
import android.webkit.* |
|
|
|
import android.webkit.* |
|
|
|
import io.legado.app.App |
|
|
|
import io.legado.app.App |
|
|
|
|
|
|
|
import org.apache.commons.text.StringEscapeUtils |
|
|
|
import java.lang.ref.WeakReference |
|
|
|
import java.lang.ref.WeakReference |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -131,7 +132,7 @@ class AjaxWebView { |
|
|
|
params.setCookie(url) |
|
|
|
params.setCookie(url) |
|
|
|
handler.postDelayed({ |
|
|
|
handler.postDelayed({ |
|
|
|
view.evaluateJavascript("document.documentElement.outerHTML") { |
|
|
|
view.evaluateJavascript("document.documentElement.outerHTML") { |
|
|
|
handler.obtainMessage(MSG_SUCCESS, it) |
|
|
|
handler.obtainMessage(MSG_SUCCESS, StringEscapeUtils.unescapeJson(it)) |
|
|
|
.sendToTarget() |
|
|
|
.sendToTarget() |
|
|
|
} |
|
|
|
} |
|
|
|
}, 1000) |
|
|
|
}, 1000) |
|
|
|