Skip to content

Commit

Permalink
🐛 fix error navigation
Browse files Browse the repository at this point in the history
 - RecipeMakingFragment to StepMakingFragment
  • Loading branch information
Hogu59 authored and ii2001 committed Jul 26, 2024
1 parent 5eafeea commit 7c06b14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RecipeMakingFragment : Fragment() {
}

private fun onNextClicked() {
val action = RecipeMakingFragmentDirections.actionRecipeMakingFragmentToMakingStepFragment()
val action = RecipeMakingFragmentDirections.actionRecipeMakingFragmentToStepMakingFragment()
findNavController().navigate(action)
}

Expand Down
28 changes: 7 additions & 21 deletions android/app/src/main/res/navigation/nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,41 +95,27 @@
android:id="@+id/action_searchFragment_to_recipeMakingFragment"
app:destination="@id/recipeMakingFragment" />
</fragment>
<fragment
android:id="@+id/recipeMakingFragment"
android:name="net.pengcook.android.presentation.making.RecipeMakingFragment"
android:label="RecipeMakingFragment">
<action
android:id="@+id/action_recipeMakingFragment_to_makingStepFragment"
app:destination="@id/makingStepFragment" />
</fragment>

<fragment
android:id="@+id/recipeStepFragment"
android:name="net.pengcook.android.presentation.step.RecipeStepFragment"
android:label="RecipeStepFragment" >
android:label="RecipeStepFragment">
<action
android:id="@+id/action_recipeStepFragment_to_detailRecipeFragment"
app:destination="@id/detailRecipeFragment" />
</fragment>
<fragment
android:id="@+id/makingStepFragment"
android:name="net.pengcook.android.presentation.making.step.StepMakingFragment"
android:label="StepMakingFragment">
</fragment>

<fragment
android:id="@+id/recipeMakingFragment"
android:name="net.pengcook.android.presentation.making.RecipeMakingFragment"
android:label="RecipeMakingFragment" />
android:label="RecipeMakingFragment" >
<action
android:id="@+id/action_recipeMakingFragment_to_stepMakingFragment"
app:destination="@id/stepMakingFragment" />
</fragment>
<fragment
android:id="@+id/stepMakingFragment"
android:name="net.pengcook.android.presentation.making.step.StepMakingFragment"
android:label="StepMakingFragment" />

<fragment
android:id="@+id/recipeStepFragment"
android:name="net.pengcook.android.presentation.step.RecipeStepFragment"
android:label="fragment_recipe_step"
tools:layout="fragment_recipe_step" />

</navigation>

0 comments on commit 7c06b14

Please sign in to comment.