TGViewer
FolkPatch/Aster FolkPatch/Aster @folkpatch · 11.4K subscribers
Post #930 19.2K
FolkPatch_114255_4.3_on_main-release.apk10.4 MB
fix(webui): defer loadUrl until WebView is laid out and support insets (#151)
The WebUI failed to load CSS/JS assets because the WebView was configured and loadUrl was called inside the AndroidView factory during Compose composition, which blocked the main thread and called loadUrl before the WebView had valid dimensions.
Refactor to match the KernelSU pattern:
- Create WebView and configure WebViewAssetLoader on IO dispatcher
- Build WebView fully on Main thread outside AndroidView
- Defer loadUrl until width > 0 && height > 0 via layout listener

- related:
- tiann/KernelSU#2952
- tiann/KernelSU#3083
- tiann/KernelSU#3126
- tiann/KernelSU#3190

Signed-off-by: KOWX712 <leecc0503@gmail.com>
  • ❤ 43
  • 👍 6
  • 🤔 1
More from @folkpatch
  1. Oct 9, 2026对齐了主题系统的能力,和修改内核源码应对新的监测点 Aligning the capabilities of the theme system and modifying the…
  2. Oct 8, 2026FolkSU Preview pre6 Released (FolkPatch Themed System) 1. Added a dynamic manager solution…
  3. Oct 7, 2026FolkSU pre-release version 2 has been pushed, supporting direct import and use of FolkPatc…
  4. Oct 7, 2026https://t.me/FolkSU_Dev
  5. Oct 4, 2026photo post
  6. Oct 4, 2026FolkPatch V6 · Sol —— 更新要点 1. 全面升级 Material 3 Expressive,界面第一次真正有了生命感 2. 全新「壁纸图鉴」在线画廊:海量高清…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →