fix: add LAUNCHER category and page-finished log
This commit is contained in:
@@ -92,6 +92,12 @@ class MainActivity : Activity() {
|
||||
setContentView(root)
|
||||
desktopWebView = WebViewManager(this).attach(bridge, root)
|
||||
desktopWebView.webViewClient = object : WebViewClient() {
|
||||
// 主帧加载完成时打日志,便于定位黑屏(判断 index.html 是否成功加载)
|
||||
// Log when the main frame finishes loading, to help diagnose a black screen
|
||||
override fun onPageFinished(view: WebView?, url: String?) {
|
||||
Log.d(TAG, "onPageFinished: url=$url")
|
||||
}
|
||||
|
||||
// 主帧加载失败时展示错误页,避免白屏
|
||||
// Show an error page on main-frame load failure to avoid a blank screen
|
||||
@Suppress("DEPRECATION", "OVERRIDE_DEPRECATION")
|
||||
|
||||
Reference in New Issue
Block a user