I have two graphs, so the first graph move from one fragment to an activity passing safeArgs to the activity.
val action = MyFragmentDirections.actionMyActiv
I don't know if this is recommended, but it is working:
val args = MyActivity.fromBundle(intent.extras) navController.navigate(R.id.myActivityFragment, args.toBundle())