navigation bar doesn't work after fragment change
bottom navigation bar doesn't work at all after I change fragment with supportFragmentManager.
binding.addBookSelectBackBtn.setOnClickListener {
(context as MainActivity).supportFragmentManager.beginTransaction().replace(
R.id.nav_host_fragment_container,
AddBookFragment()
).commitAllowingStateLoss()
}
How can I solve it?