Skip to content

fix(add): keep Save bookmark above the navigation bar - #48

Merged
juev merged 1 commit into
mainfrom
47-save-button-nav-bar-inset
Nov 2, 2026
Merged

juev merged 1 commit into
mainfrom
47-save-button-nav-bar-inset

Conversation

@juev

@juev juev commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Closes #47

Change

The Add Bookmark bottom bar now pads for the navigation bar as well as the keyboard: navigationBarsPadding().imePadding(). Scaffold leaves bottomBar insets to the bar itself, and the plain Box there applied only the keyboard inset, so on Android 15+ (edge-to-edge) the three-button bar covered most of the Save bookmark button.

Tests

  • New instrumented test QueueUiTest.saveButtonStaysAboveNavigationBar: the button must end above the navigation bar inset. It is skipped where the app window is not drawn under the bar (before Android 15).
  • Before the fix, on an API 36 emulator with three-button navigation: Save bookmark ends at 2118.0px, the navigation bar starts at 2034px.
  • After the fix: assembleDebug lintDebug testDebugUnitTest connectedDebugAndroidTest pass, 75 instrumented tests on API 36.
  • Checked on the emulator screen: with the keyboard closed the button sits above the three-button bar; with it open the button sits right above the keyboard, with no extra gap.

The Add Bookmark bottom bar applied only the keyboard inset. With
edge-to-edge on Android 15+, three-button navigation covered most of
the button. Pad the bar for the navigation bar too, and test that the
button ends above the navigation bar inset.

Closes #47
@juev
juev merged commit cc7876e into main Nov 2, 2026
1 check passed
@juev
juev deleted the 47-save-button-nav-bar-inset branch November 2, 2026 08:04
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.

Save bookmark button is covered by the three-button navigation bar

1 participant