Im using navgraph to navigate between fragments.
Now, i implemet notifications in my app, so, when i click on the notification im goingo to the MainActivity with pending intent.
In the MainActivity I verify if the user is loged in, and manage the putExtra data to know to which fragment navigate.
The problem is that the activity_main.xml doesn´t appear to add in the navgraph, so i don´t have MainActivityDirections.actionMainActivityToFragment(argument)
How can i navigate from the activity to one fragment with arguments?