Skip to content

feat(nav): sit the mini player beside the shrunk floating bar - #2155

Merged
A-EDev merged 5 commits into
mainfrom
feat/floating-nav-bubble
Nov 16, 2026
Merged

A-EDev merged 5 commits into
mainfrom
feat/floating-nav-bubble

Conversation

@A-EDev

@A-EDev A-EDev commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • New switch, Mini player beside the bubble (off by default, shown with Shrink). While the bar is shrunk, the music mini player, the background video bar and the Play on bar move into the bar's row beside the bubble.
  • The floating video mini player docks too: in a bottom corner its bottom edge lines up with the bubble, and in the bubble's corner it moves in past the bubble. It springs there through the existing resnap, and wide mode keeps its normal height so it never covers the bubble.
  • The mini bars' move rides one spring and is read in layout only: FlowBottomInsets gives the resting height and a start shift, and each mini bar applies them in its offset and layout lambdas. Nothing recomposes per frame.
  • Refactor first: the bottom chrome insets move out of FlowApp.kt into FlowBottomChrome.kt (no behaviour change), taking FlowApp from 602 to 553 lines.

Stacked on #2154.

Related issue

None, owner request.

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Build, packaging, or CI
  • Documentation

Validation

  • ./gradlew :app:assembleGithubDebug
  • ./gradlew :app:testGithubDebugUnitTest (6191 tests, 0 failures; ClearDockedBarTest 2/2, DraggablePlayerGeometryTest 24/24)
  • I ran any additional flavor-specific build or test tasks affected by this change. (spotlessCheck, :app:compileFossDebugKotlin)
  • I manually tested the affected behavior on an Android device or emulator.

Test device and Android version: Android emulator, API 37, with music playing: scroll down docks the mini player beside the bubble, the full player opens from and closes back to the docked spot, scroll up undocks it above the bar.

Screenshots or recordings

Risk and compatibility

One synced preference key (bottom_nav_mini_beside). Touches the mini bars' resting geometry (music sheet, background video bar, Play on bar); with the switch off the shift is zero and positions are unchanged.

  • The change does not introduce secrets, private data, or unexpected telemetry.
  • New user-facing text uses Android string resources.
  • Dependency and lockfile changes are intentional and limited to this PR.
  • Room schema changes include the required version bump and migration, or this PR does not change the Room schema.
  • Breaking changes and upgrade steps are clearly documented.

@github-actions github-actions Bot added documentation Improvements or additions to documentation ui Compose UI, theming, or Material 3 surfaces labels Nov 16, 2026
@A-EDev
A-EDev changed the base branch from feat/floating-nav-shrink to main November 16, 2026 10:59
@A-EDev A-EDev closed this Nov 16, 2026
@A-EDev A-EDev reopened this Nov 16, 2026
@A-EDev
A-EDev merged commit 25bb170 into main Nov 16, 2026
9 checks passed
@A-EDev
A-EDev deleted the feat/floating-nav-bubble branch November 16, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ui Compose UI, theming, or Material 3 surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant