feat: glass effect toggle, media refresh timing fix, page transition perf
This commit is contained in:
@@ -164,6 +164,10 @@ class MainActivity : Activity() {
|
||||
// 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")
|
||||
// H5 就绪后重新拉取一次媒体,修复启动时推送早于页面渲染的时序问题
|
||||
// Re-pull media once H5 is ready: fixes the startup timing where the
|
||||
// media push happens before the page has rendered
|
||||
bridge.refreshMedia()
|
||||
}
|
||||
|
||||
// 主帧加载失败时展示错误页,避免白屏
|
||||
|
||||
Reference in New Issue
Block a user