I have an issue that I have an activity include in the initial one fragment shown in it ad works fine it receive keep receive data and update it's ui, but once I add the second fragment to the activity seems like the second one freeze the previous one from updating or receiving anything. have any one an idea about this issue ?
im using this function to add fragment ->
   fun setFragment(fragment: Fragment, fragmentManager: FragmentManager, fragmentId: Int) {
        val fragmentTransaction: FragmentTransaction =
            fragmentManager.beginTransaction().setReorderingAllowed(true)
        fragmentTransaction.replace(fragmentId, fragment).setTransition(TRANSIT_FRAGMENT_FADE)
        fragmentTransaction.commit()
    }