I've been using the new new Navigation-API in Jetpack and I've come across a problem that I can't find a satisfactory solution to.
Basically the app I'm creating has a large number of different fragments. Most of the fragments talk to a backend and when they do they can discover that their session has timed out. When this occurs I want to go to the login-fragment. The only way I've been able to do this is to create an action for every fragment with the destination pointing to the login screen. This is a lot of boiler plate that I would rather avoid. Is there a simpler way to do this?