Skip to content

refactor: navigation and bottom sheet#491

Open
tvillega wants to merge 22 commits intoeddyizm:developmentfrom
tvillega:refactor-navigation-and-bottom-sheet
Open

refactor: navigation and bottom sheet#491
tvillega wants to merge 22 commits intoeddyizm:developmentfrom
tvillega:refactor-navigation-and-bottom-sheet

Conversation

@tvillega
Copy link
Contributor

@tvillega tvillega commented Mar 8, 2026

This PR extracts the logic of the app navigation and bottom sheet (the player) into their own controllers.

Additionally, this stabilizes the drawer behavior and now an app restart is not necessary to update its lock.

In order to add a toolbar with a back button in settings I needed to extend from a fragment
so I converted SettingsFragment into a fragment and created SettingsContainerFragment,
the latter is injected as a child of SettingsFragment inside a FrameLayout.

Since SettingsContainerFragment extends from PreferenceFragmentCompat, this allows
to swap it for other and, in the bigger picture, allow an arbitrary organization.
Hide bottom navigation bar on portrait and unlock drawer on portrait
In order to add a toolbar with a back button in settings I needed to extend from a fragment
so I converted SettingsFragment into a fragment and created SettingsContainerFragment,
the latter is injected as a child of SettingsFragment inside a FrameLayout.

Since SettingsContainerFragment extends from PreferenceFragmentCompat, this allows
to swap it for other and, in the bigger picture, allow an arbitrary organization.
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