Skip to content

Commit

Permalink
[fix/home_detail_action]: 식당 등록 액션 기능 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
dogdduddy authored and Jim-swit committed Mar 16, 2024
1 parent 0a4a31b commit c53b97d
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,21 @@ class HomeFragment : Fragment(), ViewHolderBindListener {


private fun setRestaurantListBottomSheet() {

binding.registButton.setOnClickListener {
findNavController().navigate(HomeFragmentDirections.actionHomeFragmentToSearchRestaurantLocationInfoFragment(
viewModel.currentGroup.value?.groupId ?: 0
))
}

binding.scrollUpButton.setOnClickListener {
binding.recyclerView.scrollToPosition(0)
}

binding.registRestaurantButton.setOnClickListener {
// TODO : 식당 등록 버튼 클릭 시 동작 정의 필요
Log.d("testLog", "식당 등록 버튼 클릭")
findNavController().navigate(HomeFragmentDirections.actionHomeFragmentToSearchRestaurantLocationInfoFragment(
viewModel.currentGroup.value?.groupId ?: 0
))
}

restaurantListAdapter.addLoadStateListener { loadState ->
Expand Down

0 comments on commit c53b97d

Please sign in to comment.