Skip to content

Commit

Permalink
fix: Order completed to events navigation (fossasia#1921)
Browse files Browse the repository at this point in the history
  • Loading branch information
liveHarshit committed Jun 6, 2019
1 parent 981d72c commit 24830da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class OrderCompletedFragment : Fragment() {
}

private fun redirectToEventsFragment() {
findNavController(rootView).popBackStack(R.id.eventsFragment, false)
findNavController(rootView).navigate(OrderCompletedFragmentDirections.actionOrderCompletedToEvents())
}

private fun openEventDetails() {
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/navigation/navigation_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,12 @@
app:enterAnim="@anim/slide_in_right"
app:exitAnim="@anim/slide_out_left"/>

<action
android:id="@+id/action_order_completed_to_events"
app:destination="@id/eventsFragment"
app:popUpTo="@id/eventsFragment"
app:popUpToInclusive="true" />

<argument
android:name="eventId"
app:argType="long"
Expand Down

0 comments on commit 24830da

Please sign in to comment.