From 7c06b14ce96d93f0117758b9747d8c4561fe4050 Mon Sep 17 00:00:00 2001 From: Hogu59 Date: Fri, 26 Jul 2024 10:38:40 +0900 Subject: [PATCH] :bug: fix error navigation - RecipeMakingFragment to StepMakingFragment --- .../making/RecipeMakingFragment.kt | 2 +- .../app/src/main/res/navigation/nav_graph.xml | 28 +++++-------------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingFragment.kt b/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingFragment.kt index fbb223e8..3b11b25b 100644 --- a/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingFragment.kt +++ b/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingFragment.kt @@ -44,7 +44,7 @@ class RecipeMakingFragment : Fragment() { } private fun onNextClicked() { - val action = RecipeMakingFragmentDirections.actionRecipeMakingFragmentToMakingStepFragment() + val action = RecipeMakingFragmentDirections.actionRecipeMakingFragmentToStepMakingFragment() findNavController().navigate(action) } diff --git a/android/app/src/main/res/navigation/nav_graph.xml b/android/app/src/main/res/navigation/nav_graph.xml index 3a8ebd0d..a2be7713 100644 --- a/android/app/src/main/res/navigation/nav_graph.xml +++ b/android/app/src/main/res/navigation/nav_graph.xml @@ -95,41 +95,27 @@ android:id="@+id/action_searchFragment_to_recipeMakingFragment" app:destination="@id/recipeMakingFragment" /> - - - + + android:label="RecipeStepFragment"> - - - + android:label="RecipeMakingFragment" > + + -