The first time the navigatorHostId
is set it uses the value R.id.main_nav_host
supposedly added to to activity_main.xml
in previous steps. But the id used for the fragment is main
not main_nav_host
.
The first time the navigatorHostId
is set it uses the value R.id.main_nav_host
supposedly added to to activity_main.xml
in previous steps. But the id used for the fragment is main
not main_nav_host
.