Fix WebView crash

(cherry picked from commit fa37c72923)
This commit is contained in:
Koitharu
2025-05-19 19:11:46 +03:00
parent ab2235d0ca
commit 0badf10a8b

View File

@@ -2,11 +2,15 @@ package org.koitharu.kotatsu.browser
import android.graphics.Bitmap
import android.webkit.WebView
import androidx.webkit.WebViewClientCompat
import android.webkit.WebViewClient
open class BrowserClient(
private val callback: BrowserCallback
) : WebViewClientCompat() {
) : WebViewClient() {
/**
* https://stackoverflow.com/questions/57414530/illegalstateexception-reasonphrase-cant-be-empty-with-android-webview
*/
override fun onPageFinished(webView: WebView, url: String) {
super.onPageFinished(webView, url)