How to find a child Fragment with Navigation Architecture components
After learning basics about new architecture components, I decided to apply this knowledge and work a demo project. In this project I have been working with google map.
In my navHost fragment, one of the fragment shows google map this way
from the code I have been trying to get this fragment class, the related code looks like this
private val host: NavHostFragment? by lazyFast {
activity?.supportFragmentManager
?.findFragmentById(R.id.my_nav_host_fragment) as...