Aness Iqbal
12/18/2020, 9:28 PMview?.findNavController()?.popBackStack(R.id.dashboard_fragment, false) // pop the stack till home.
and doing this right after above line
activity?.startActivityForResult(intent, HomeActivityRequestCode)
the problem here is I get view of Fragment A (dashboard fragment) for a second while starting Activity 2 from Fragment D. How can I avoid the view of Fragment A when going from Fragment D to Activity 2.
Note: I am using activity for results currently if there is some better approach other than that, please do help me with that.