feat: hide foreground webapp when switching sidebar pages

This commit is contained in:
2026-08-16 20:27:17 +08:00
parent 7a28e2372c
commit fe2dcabdd4
4 changed files with 30 additions and 0 deletions
@@ -35,4 +35,9 @@ interface WebAppHost {
// 将标签状态推送到桌面 H5 顶栏
// Push the tab state to the desktop H5 topbar
fun syncTabs(tabs: List<Tab>)
// 隐藏所有内容 WebView(把前台 webapp 丢到后台,标签状态保留)
// Hide all content WebViews (send the foreground webapp to background,
// keeping the tab state)
fun hideAll()
}