mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
The full-screen NappletHostActivity already consumes system-bar + cutout insets at its root so its WebView doesn't pad the page for the status/nav bars a second time (targetSdk 35+ auto-applies received insets to web content). The embedded surfaces — the browser tab and the new embedded nsite/napplet tabs — have no such root: the WebView is the surface view, so it received and re-applied those insets, leaving an empty band under the status and navigation bars even though the host already places the surface in the inset-free content area. Add WebView.dropSystemBarInsets() (zeroes system-bar + display-cutout insets, keeps IME for keyboard resize) and apply it in both NappletBrowserService and NappletHostService when the session WebView is built. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MgMpRcWj6y82LxLiwcuzmN