I am currently adding a new fragment to the backstack (On top of the current fragment):
val fragmentTransaction = fragmentManager?.beginTransaction()
fragmentTransaction?.add(R.id.cl_my_profile_edit, newFragment)?.addToBackStack(null)
fragmentTransaction?.commit()
Will this pause the current fragment in which this code is run?
If this does not pause the current fragment
will calling onPause()
as such:
val fragmentTransaction = fragmentManager?.beginTransaction()
fragmentTransaction?.add(R.id.cl_my_profile_edit, newFragment)?.addToBackStack(null)
fragmentTransaction?.commit()
onPause()
Pause the current fragment?