destroy fragent after navigating code example
Example 1: destroy fragent after navigating
First, add attributes app:popUpTo='your_nav_graph_id' and app:popUpToInclusive="true" to the action tag.
Example 2: destroy fragent after navigating
First, add attributes app:popUpTo='your_nav_graph_id' and app:popUpToInclusive="true" to the action tag.