Skip to content

Commit

Permalink
empty backstack after login
Browse files Browse the repository at this point in the history
man that was easy
  • Loading branch information
LivingWithHippos committed Sep 24, 2020
1 parent e688f0f commit 026a01f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions app/app/src/main/res/navigation/home_nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
android:label="@string/loading">
<action
android:id="@+id/action_startFragment_to_authenticationFragment"
app:destination="@id/authentication_dest" />
app:destination="@id/authentication_dest"
app:popUpTo="@id/authentication_dest"
app:popUpToInclusive="true"/>
<action
android:id="@+id/action_startFragment_to_userProfileFragment"
app:destination="@id/profile_dest" />
app:destination="@id/profile_dest"
app:popUpTo="@id/profile_dest"
app:popUpToInclusive="true" />
</fragment>
<fragment
android:id="@+id/authentication_dest"
Expand All @@ -25,7 +29,9 @@
android:label="@string/authenticate" >
<action
android:id="@+id/actionAuthenticationToUser"
app:destination="@id/profile_dest" />
app:destination="@id/profile_dest"
app:popUpTo="@id/profile_dest"
app:popUpToInclusive="true" />
</fragment>
<fragment
android:id="@+id/profile_dest"
Expand Down

0 comments on commit 026a01f

Please sign in to comment.