fix: grid minmax, media polling fallback, content webview layout, swipe timeout

This commit is contained in:
2026-08-16 20:25:21 +08:00
parent 8d10d9e5e9
commit 7a28e2372c
5 changed files with 59 additions and 10 deletions
@@ -26,12 +26,14 @@ class WebViewManager(private val activity: Activity) {
}
// 创建内容 WebView(webAPP 标签页),仅配置不加载、不挂载(由宿主管理)
// 透明背景:webAPP 未声明背景色时透出桌面壁纸,而非默认白底
// Create a content WebView (webapp tab), configured but not loaded/attached
// (lifecycle is managed by the host)
// (lifecycle is managed by the host); transparent background so a webapp without
// a declared background shows the wallpaper instead of a default white
@SuppressLint("SetJavaScriptEnabled")
fun createContentWebView(): WebView {
val webView = WebView(activity)
webView.setBackgroundColor(Color.WHITE)
webView.setBackgroundColor(Color.TRANSPARENT)
configure(webView)
return webView
}