Skip to content

Commit

Permalink
[chore] #8 nav_graph 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed May 15, 2024
1 parent f4a3fab commit 9005bce
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RecommendFragment : BindingFragment<FragmentRecommendBinding>({ FragmentRe
super.onViewCreated(view, savedInstanceState)

binding.btnToProductDetail.setOnClickListener {
findNavController().navigate(R.id.releaseFragment)
findNavController().navigate(R.id.release_fragment)
}
}
}
38 changes: 19 additions & 19 deletions app/src/main/res/navigation/nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,49 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/nav_graph"
app:startDestination="@id/recommendFragment">
app:startDestination="@id/recommend_fragment">

<fragment
android:id="@+id/recommendFragment"
android:id="@+id/recommend_fragment"
android:name="org.sopt.kream.presentation.ui.main.home.recommend.RecommendFragment"
android:label="fragment_recommend"
tools:layout="@layout/fragment_recommend">
<action
android:id="@+id/action_recommendFragment_to_productDetailFragment"
app:destination="@id/productDetailFragment" />
android:id="@+id/action_recommend_fragment_to_product_detail_fragment"
app:destination="@id/product_detail_fragment" />
<action
android:id="@+id/action_recommendFragment_to_searchFragment"
app:destination="@id/searchFragment" />
android:id="@+id/action_recommend_fragment_to_search_fragment"
app:destination="@id/search_fragment" />
<action
android:id="@+id/action_recommendFragment_to_releaseFragment"
app:destination="@id/releaseFragment" />
android:id="@+id/action_recommend_fragment_to_release_fragment"
app:destination="@id/release_fragment" />
</fragment>
<fragment
android:id="@+id/releaseFragment"
android:id="@+id/release_fragment"
android:name="org.sopt.kream.presentation.ui.main.home.release.ReleaseFragment"
android:label="fragment_release"
tools:layout="@layout/fragment_release">
<action
android:id="@+id/action_releaseFragment_to_productDetailFragment"
app:destination="@id/productDetailFragment" />
android:id="@+id/action_release_fragment_to_product_detail_fragment"
app:destination="@id/product_detail_fragment" />
<action
android:id="@+id/action_releaseFragment_to_searchFragment"
app:destination="@id/searchFragment" />
android:id="@+id/action_release_fragment_to_search_fragment"
app:destination="@id/search_fragment" />
<action
android:id="@+id/action_releaseFragment_to_recommendFragment"
app:destination="@id/recommendFragment" />
android:id="@+id/action_release_fragment_to_recommend_fragment"
app:destination="@id/recommend_fragment" />
</fragment>
<fragment
android:id="@+id/searchFragment"
android:id="@+id/search_fragment"
android:name="org.sopt.kream.presentation.ui.search.SearchFragment"
android:label="fragment_search"
tools:layout="@layout/fragment_search">
<action
android:id="@+id/action_searchFragment_to_productDetailFragment"
app:destination="@id/productDetailFragment" />
android:id="@+id/action_search_fragment_to_product_detail_fragment"
app:destination="@id/product_detail_fragment" />
</fragment>
<fragment
android:id="@+id/productDetailFragment"
android:id="@+id/product_detail_fragment"
android:name="org.sopt.kream.presentation.ui.productdetail.ProductDetailFragment"
android:label="fragment_product_detail"
tools:layout="@layout/fragment_product_detail" />
Expand Down

0 comments on commit 9005bce

Please sign in to comment.