Skip to content

Instantly share code, notes, and snippets.

@cengiztoru
Last active July 1, 2020 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cengiztoru/1f4fc5df3393872570ae51cc6f8bc27c to your computer and use it in GitHub Desktop.
Save cengiztoru/1f4fc5df3393872570ae51cc6f8bc27c to your computer and use it in GitHub Desktop.
Prevent Bactracking
<fragment
android:id="@+id/loginFragment"
android:name="com.cengiztoru.samplenavigationexample.ui.fragments.LoginFragment"
android:label="fragment_login"
tools:layout="@layout/fragment_login">
<action
app:popUpTo="@id/loginFragment"
app:popUpToInclusive="true"
android:id="@+id/action_loginFragment_to_homeFragment"
app:destination="@id/homeFragment"/>
<action
android:id="@+id/action_loginFragment_to_signupFragment"
app:destination="@id/signupFragment"/>
</fragment>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment