That is related yes.
Also if you watch the Fragments talk at Android summit 2019, just last week.
Ian Lakes mentioned this will be covered in the next major release. The major features they will be adding are:
1- Multi back stack
2- OnFragmentResult kind of API
3- Fragment Lifecycle improvements.
The sad part of this, is that he mentioned it will take a "few" months. It could be 3 but also 6 🤷♂️
I had created a workaround a few months ago in my current company. They really wanted to use Jetpack Navigation although I opposed.
I am porting it now to this project:
https://github.com/pablichjenkov/Pack-Navigation
I am not done yet, I need to extract some other classes that I created for bottomNavigationView. But the result delivery API is done.
Basically what I have is a Global MailBoxStore ViewModel. Each Fragment send message to each other based on their mailBox ID which is the Fragment nav graph ID. Every time a Fragment starts, it checks if there is a message in its mailBox. In such a case it will start in the
onFragmentResult()
mode.
Check if the concept works for you.