pull/1352/head
gedoor 3 years ago
parent 683fc3bef8
commit fbee6a9dd3
  1. 4
      app/src/main/java/io/legado/app/help/http/BackstageWebView.kt

@ -35,7 +35,9 @@ class BackstageWebView(
suspend fun getStrResponse(): StrResponse = suspendCancellableCoroutine { block -> suspend fun getStrResponse(): StrResponse = suspendCancellableCoroutine { block ->
block.invokeOnCancellation { block.invokeOnCancellation {
destroy() runOnUI {
destroy()
}
} }
callback = object : BackstageWebView.Callback() { callback = object : BackstageWebView.Callback() {
override fun onResult(response: StrResponse) { override fun onResult(response: StrResponse) {

Loading…
Cancel
Save