Repository navigation
fix: show toasts above sheet - #1273
Conversation
|
Waiting for CI checks |
|
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
There was a problem hiding this comment.
Verdict: ✅ Approve
Reaudit: diff 6 files.
Findings:
N/A
Audit:
Skipped - no security surface in the diff (score 0, threshold 3).
Coverage:
QA: Manual Tests await all reviewers to approve, author can run it now via comment: @ovi-reviewer test
Reviewed by grok-4.6-xhigh via gh-pr-review-loop skill
Commands: @ovi-reviewer test · retest · audit (author or owner)
|
Tested and verified manually. |
|
QA reviewed on c713022. Ran on Pixel_6 emulator-5554 (built locally via build-android-apk.sh, onchain fixture): Send/Receive scrim, Send opening-scrim, Add Tag keyboard, Boost Fee Invalid toast above the sheet. iOS skipped: no twin. Upward swipe on that toast dismissed Boost while the tx was still Confirming. Twin: no twin found. FindingsMEDIUM
ScaleHIGH must be fixed before merge · MEDIUM good to fix here or in a follow-up · LOW non-blocking, nit |
@piotr-iohk I'm not able to reproduce a single swipe dismissing both layers. When the gesture starts on the toast, only the toast dismisses and the Boost sheet remains. When it starts outside the toast, it reaches the scrim and dismisses the sheet instead. Could you share the swipe start/end coordinates or a recording in a follow-up issue so I can reproduce the exact gesture? |
Sorry, I re-checked and that was false positive. |


Fixes #1267
Description
This PR keeps every toast above an open sheet.
Android previously used two sheet implementations: app-level sheets used
SheetHostwithBottomSheetScaffold, while standalone sheets such as Boost usedModalBottomSheetin a separate window. That window boundary placed the root toast behind the modal scrim and prevented its backdrop blur from sampling the sheet.Standalone sheets now register with a root overlay host and render through the same shared
SheetHostimplementation as Send and Receive. The app keeps one Haze-backed root toast overlay above every sheet, so duplicate and dimmed toasts are removed while the existing close, blur, drag, scrim, back-dismiss, and keyboard behavior remains available. Shared IME padding keeps form fields and actions above the keyboard, and a scrim tap during the opening animation now fully clears the pending sheet.Toast gestures are now vertical only: an upward swipe follows the finger and dismisses after the existing threshold, a downward drag has resisted rubber-band movement and springs back, and horizontal swipes do not move or dismiss the toast.
Design
N/A — no design available.
Preview
Home & Receive Sheet:
demo.mp4
Boost Sheet:
demo.mp4
QA Notes
Manual Tests
Fee Invalidtoast appears at the screen top above the sheet.Fee Invalidtoast appears at the screen top above the sheet.Copiedtoast appears above the sheet.regression:Home → Send and Home → Receive: both sheets retain their existing drag, scrim, and back-dismiss behavior.regression:Open Add Tag or Add Contact → focus the text field: the underlying screen remains visible beneath the scrim, and the field and actions remain above the keyboard.regression:From the PIN screen, open Forgot PIN: the sheet appears above the PIN screen and dismisses normally.regression:Home → tap Send and immediately tap the scrim: the opening sheet dismisses and Send can be opened again.Automated Checks
SheetHostTest.kt: covers a scrim dismissal during the sheet opening animation and existing dismissal behavior.BottomSheetOverlayHostTest.kt: covers overlay registration/removal, toast interaction above a sheet, ignored horizontal and downward swipes, and upward dismissal.compileDevDebugAndroidTestKotlinandjust lintpassed. Detekt reported existing baseline findings only.just testran 2,542 tests with one unrelated transientTrezorBridgeTransportTestfailure; that complete test file passed on immediate rerun.