I have a main screen that shows the general information of the app, and a bottom sheet with additional information.
The main screen content can change if the user clicks something on the navigation drawer menu, selecting a new screen.
The bottom sheet on the main screen can also change as the user clicks for more data.
So I basically have a nested Navigation in the bottom sheet, which goes inside the main navigation in the main screen.
My problem is, when using the new Android Architecture Components Navigation Controller
, there's the app:defaultNavHost="true"
option, which intercepts the back button.
This auto interception of the back button makes my user case pretty complicated. What I wanted is that when the user is in the main screen, the bottom sheet has control over the back button, and when the user swaps the main screen, than the main screen controls the back button.