Skip to content

Fix bottom navigation safe-area inset on button navigation#2

Open
DisYaBoiRalph wants to merge 1 commit into
cheesyserg:masterfrom
DisYaBoiRalph:upstream-fixes-safe-area-nav
Open

Fix bottom navigation safe-area inset on button navigation#2
DisYaBoiRalph wants to merge 1 commit into
cheesyserg:masterfrom
DisYaBoiRalph:upstream-fixes-safe-area-nav

Conversation

@DisYaBoiRalph
Copy link
Copy Markdown

Summary

This PR fixes the extra bottom "chin" gap seen on devices using 3-button navigation. (Yes, I'm used to nav buttons)

Instead of applying bottom system-bar inset to the entire root container, the app now applies it directly to BottomNavigationView.

What changed

  • Updated MainActivity window-insets handling.
  • Root view now uses top/left/right insets only.
  • Bottom inset is applied as padding to bottom_navigation.
  • Reused bottomNavigation reference for item selection listener.

Why

Applying bottom inset to the whole root layout can create extra visual space above the navigation area on button-navigation devices. Applying that inset to the bottom nav itself keeps layout behavior correct across gesture and button navigation modes.

Scope

  • UI-only change.
  • No behavior/protocol/USB logic changes.

Screenshots

Before

Screenshot_20260530_224655_Black Pearl Control Screenshot_20260530_224548_Black Pearl Control

After

Screenshot_20260530_224731_Black Pearl Control Screenshot_20260530_224716_Black Pearl Control

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant