'Android Hotwire: No back button when MainActivity is not a TurboActivity

In the current app I'm working on the setup differs from the demo setup. In the demo setup, the MainActivity uses the TurboActivity class. In my current setup, I have native authentication and therefore the MainActivity handles part of the authentication. When the user is authenticated, they are passed to the WebActivity. The WebActivity contains all needed and uses the WebFragment as in the demo.

However, when testing the app right now, the 'back' button has disappeared. I have searched the source code, but no luck. Is the TurboNavGraphBuilder required to use the MainActivity as registered activity? I have tried registering the WebActivity, but no luck.

Could someone help me out with this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source