When using the Android navigation framework I have IntroFragment as the root and MainFragment as a destination from IntroFragment. In IntroFragment I call:
view.findNavController().navigate(IntroFragmentDirections.actionIntroFragmentToMainFragment())
The xml for that action is:
<action android:id="@+id/action_introFragment_to_mainFragment" app:destination="@id/mainFragment"
app:exitAnim="@anim/slide_out_right" app:popUpTo="@+id/main" app:popUpToInclusive="true"/>
Despite the popUpToInclusive, a back arrow still appears in the toolbar in the MainFragment. I haven't been able to find a way to get rid of it. I have confirmed that pressing the back soft-key does exit the activity.