Android jetpack navigation component result from dialog
问题 So far I'm successfully able to navigate to dialogs and back using only navigation component. The problem is that, I have to do some stuff in dialog and return result to the fragment where dialog was called from. One way is to use shared viewmodel. But for that I have to use .of(activity) which leaves my app with a singleton taking up memory, even when I no longer need it. Another way is to override show(fragmentManager, id) method, get access to fragment manager and from it, access to