Skip to content

Commit

Permalink
Fix up-navigation behavior when doing onboarding
Browse files Browse the repository at this point in the history
Back button shouldn't take you dashboard -> onboarding or onboarding -> dashboard
  • Loading branch information
d4rken committed Jul 12, 2024
1 parent 051677e commit 2fca909
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/res/navigation/nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
app:destination="@id/troubleShooterFragment" />
<action
android:id="@+id/action_overviewFragment_to_onboardingFragment"
app:popUpTo="@id/overviewFragment"
app:popUpToInclusive="true"
app:destination="@id/onboardingFragment" />
</fragment>

Expand All @@ -36,7 +38,9 @@
tools:layout="@layout/onboarding_fragment">
<action
android:id="@+id/action_onboardingFragment_to_overviewFragment"
app:destination="@id/overviewFragment" />
app:destination="@id/overviewFragment"
app:popUpToInclusive="true"
app:popUpTo="@id/onboardingFragment" />
</fragment>

</navigation>

0 comments on commit 2fca909

Please sign in to comment.