Skip to content

[Bug]: USDT send scanner preview collapses vertically on Samsung Galaxy S22 #1521

Closed

Description

@piotr-iohk

What happened?

In USDT Send on a Samsung Galaxy S22, the live QR camera preview collapses into a very shallow horizontal strip. The camera controls remain visible, but the framing area is much smaller than the corresponding iOS scanner. Android also displays a nested “Scan QR code” heading and a second paste button, in addition to the USDT screen's own Paste and Enter manually controls.

The supplied screenshots show the layout difference. They do not establish that QR decoding fails or that Samsung camera hardware is at fault.

Expected behavior

The embedded USDT scanner should retain a usable preview area on a Galaxy S22 and other compact screens, with gallery/flashlight and recipient controls accessible. Avoid duplicating standalone scanner headers, paste actions and safe-area padding inside the USDT sheet. If content cannot fit, adapt the sheet/scroll layout instead of collapsing the camera preview. iOS is a comparison reference, not a requirement to use identical pixel dimensions.

Steps to Reproduce

  1. Open the mainnet USDT wallet on Samsung Galaxy S22 running Android 16.
  2. Tap Send, allow camera access, and leave the network set to Arbitrum One.
  3. Observe the camera preview beneath “Scan QR code”: it is a short horizontal strip rather than a useful large scan area.
  4. Compare the equivalent USDT Send screen on iOS in the attached screenshot.

Observed in Polish with the Samsung's three-button navigation visible. Font/display scaling values were not captured. No transfer is required.

Logs / Screenshots / Recordings

Android — Samsung Galaxy S22, affected iOS — comparison
Samsung Galaxy S22 USDT Send scanner reduced to a shallow strip, with duplicate paste controls iOS USDT Send screen with a much larger camera preview

Bitkit Version

Android mainnet 3.0.0 (193), RC2; release head 19449fb0d729f51b9875eee2f66acfc0671e11da. iOS comparison: mainnet 3.0.0 (200).

Device / OS

Samsung Galaxy S22 (SM-S901B), Android 16; physical USB-connected phone. iPhone model/OS not captured for the comparison.

Reproducibility

Observed in the supplied Android screenshot; no repeated device run or other Android screen sizes tested for this report.

Additional context

Cause identified in release source

  • UsdtRecipientContent places the network selector, a weighted QrScanningScreen, its own Paste and Enter manually buttons, and a wrapped network warning into one constrained column. The USDT sheet already supplies its own title.
  • QrScanningScreen is a complete scanner screen: it always adds a SheetTopBar/AppTopBar plus navigationBarsPadding(). Its Content adds another paste button and spacing below the camera.
  • The camera Box gets only the remaining height via weight(1f) and has no minimum-height or aspect-ratio protection. Therefore the nested scanner's fixed chrome consumes space inside the already weighted region, leaving the observed narrow preview.
  • UsdtWalletScreen's modal content also applies sheet height, navigation-bar/IME padding and bottom padding. The nested navigation-bar padding further reduces the available preview space.
  • iOS recipientContent embeds Scanner directly with flexible maximum height; it does not add Android's extra scanner heading/paste button.

This is an embedded-layout issue, not evidence of a QR parser or bridge/network failure. Exact per-component measured heights have not been instrumented.

Suggested correction and validation

Use an embedded scanner mode or camera-preview component without standalone header/paste/safe-area chrome. Apply bottom insets once and retain a usable preview minimum/adaptive layout. Check the Galaxy S22 with Polish and three-button navigation, compact heights/larger font settings, and confirm gallery, flashlight, paste/manual input, camera permission handling and supported QR scanning still work. No code changes or builds made as part of this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions