mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
Confirmed on a real device: the streamed SurfaceControlViewHost surface forwards taps but drops scroll/zoom/keyboard gestures — a hard limitation of androidx.privacysandbox.ui on current Android. No tweak fixes it. Add NappletBrowserActivity: a full-screen browser that hosts the WebView *directly* in its own window in the keyless :napplet process, so scrolling, pinch-zoom, and the soft keyboard (windowSoftInputMode=adjustResize) all work natively. It carries over NappletBrowserService's per-origin NIP-07 bridge and Tor proxy, plus NappletHostActivity's trusted chip, loading screen, and foreground hold — so it stays just as keyless (page JS runs in :napplet, every window.nostr call is brokered + consent-gated per origin in the main process). Web favorites and URL launches now open this activity instead of the streamed BrowserHostActivity. Per-host Tor choice persists via a new MSG_SET_WEB_TOR broker message (the :napplet process relays it to WebUrlNetworkRegistry). The embedded bottom-row web tab still uses the streamed surface (it must, to live inside MainActivity) and so still can't scroll — that's a follow-up. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MgMpRcWj6y82LxLiwcuzmN