Skip to content

Instantly share code, notes, and snippets.

@ErikMedina
Created December 25, 2021 12:56
Show Gist options
  • Save ErikMedina/f8b0a5d1d4b09e997907c80733f34c7d to your computer and use it in GitHub Desktop.
Save ErikMedina/f8b0a5d1d4b09e997907c80733f34c7d to your computer and use it in GitHub Desktop.
Fix loop bug
<fragment
android:id="@+id/firstFragment"
android:name="com.erikmedina.navigationcomponent.FirstFragment"
tools:layout="@layout/fragment_first">
<action
android:id="@+id/action_firstFragment_to_secondFragment"
app:destination="@id/secondFragment" />
<action
android:id="@+id/action_firstFragment_to_homeFragment"
app:destination="@id/homeFragment"
app:popUpTo="@id/homeFragment" />
</fragment>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment