Skip to content

fix: Handle display cutouts in landscape mode#374

Merged
d4rken merged 1 commit intomainfrom
fix/landscape-camera-cutout-handling
Jan 17, 2026
Merged

fix: Handle display cutouts in landscape mode#374
d4rken merged 1 commit intomainfrom
fix/landscape-camera-cutout-handling

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Jan 17, 2026

Summary

  • EdgeToEdgeHelper now considers both systemBars() and displayCutout() insets when applying padding
  • Uses maxOf() to take the larger value, ensuring UI content is not obscured by camera cutouts in landscape orientation
  • Backward compatible (display cutout insets are 0 on devices without cutouts)

Test plan

  • Install on a device with a camera cutout (notch/punch hole)
  • Open the app in landscape mode (both left and right orientations)
  • Verify cards in OverviewFragment are not obscured by the camera cutout
  • Test in portrait mode to ensure no regression

EdgeToEdgeHelper now considers both systemBars() and displayCutout()
insets when applying padding. This prevents camera cutouts from
obscuring UI content when the device is in landscape orientation.
@d4rken d4rken added the bug Something isn't working label Jan 17, 2026
@d4rken d4rken merged commit 9ff8d9e into main Jan 17, 2026
13 checks passed
@d4rken d4rken deleted the fix/landscape-camera-cutout-handling branch January 17, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant