android: wallet + roster bottom actions clipped while the keyboard is up #69
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_3a094045"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the follow-up keyboard bug from PR #67: on Wallet and Roster the bottom action row sits inside a container with no scroll range, so un-covering the inset was not enough — the IME shrank the viewport and the buttons were simply out of the layout.
Changes (android only, 3 files)
ui/Insets.kt— taken verbatim from #67 (git checkout origin/wt/chat-ime-insets -- .../Insets.kt). This branch does not carry #67, so the PR is stacked onwt/chat-ime-insets(08381c4); if #67 lands first this file disappears from the diff.ui/WalletScreen.kt— rootColumnis now.padding(pad).fillMaxSize().screenContentInsets().verticalScroll(rememberScrollState())withScaffold(contentWindowInsets = WindowInsets(0, 0, 0, 0)).screenContentInsets()is outside the scroll, so the inset stays out of the scrolling viewport (imeBottom = 883 px on ow35; the viewport ends at the IME, not at the window).LazyColumn(weight(1f, fill = false))for recent transfers became a plainColumn: a lazy list measured inside a scroll container with unbounded height throws, andwalletRecentTransfersis already capped at 25 rows.} else { Spacer(Modifier.weight(1f)) }that pinned the Invoice/Tip/Create/Import block to the bottom in the "wallet off / no transfers" state had to go — a weighted child cannot be resolved inside averticalScrollColumn (remaining space is infinite). With the keyboard closed the action block now sits directly under the balance card instead of at the bottom of the window. That is the only visual delta; spacing/typography/colours are untouched.ui/RosterScreen.kt— same inset treatment, plusLazyColumn(Modifier.weight(1f).fillMaxWidth())instead offillMaxSize(). Choice: the wipe-confirm strip stays a sibling of the weighted list (rendered above it, exactly where it is today), so the list can never starve it; it was not moved into the list.Verification
PATH=$HOME/.cargo/bin:$PATH ./gradlew :app:assembleDebug -Ponionwire.abis=arm64-v8a,x86_64-> BUILD SUCCESSFUL (app-debug.apk,lib/arm64-v8a/libonionwire_sdk.so+lib/x86_64/libonionwire_sdk.so)../gradlew :app:testDebugUnitTest-> 61 tests, 0 failures, 0 errors, 0 skipped.sha256 dbd82db0eac2c80e8e11e16be70de2cd452329f6b8e5a0d8eb931988778d297e).mInputShown=true, ime frame[0,1517][1080,2400]): Cancel[643,1280][820,1406], Confirm[820,1280][1016,1406]— identical to the keyboard-closed bounds, bottoms 1406 < 1517, i.e. fully above the IME.wm size 1080x1500, IME top 628): before scrolling, the Send row is not in the window; after two swipes Cancel[630,439][807,565]/ Send[807,439][1016,565]— 565 < 628, reachable by scrolling, not clipped.[0,2337][1080,2400]; the helper unions systemBars with ime (per-side max), so nothing is padded twice.Known limits / not verified
wm size 1080x1500) the Roster wipe-confirm strip overflows the inset area: header card + action row + strip are ~1000 px of fixed content above the weighted list, so on a very short screen (or landscape) the strip still ends up behind the IME. Moving it into the LazyColumn would fix that, at the cost of rendering it below the divider inside the list; left as a sibling to preserve today's layout. Reported rather than silently restructured.com.siriusdevops.onionwire.debug; the composer measurements above were taken from a private-read-onlyinstance on port 5564 with the hash-verified APK.