Log WebView errors

This commit is contained in:
M66B
2023-11-03 18:17:42 +01:00
parent cf4d00badc
commit 46bc9b08c3
4 changed files with 24 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ import android.text.Spanned;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
@@ -407,6 +409,10 @@ public class FragmentDialogPrint extends FragmentDialogBase {
printWebView = null;
}
}
public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {
Log.w("Print error " + error.getErrorCode() + ":" + error.getDescription());
}
});
Log.i("Print load data");