Skip to content

Commit

Permalink
Fix: 홈 dday, 응원의 말 ui 연결 코드 수정 #5
Browse files Browse the repository at this point in the history
  • Loading branch information
dkyuuum committed Feb 15, 2024
1 parent 9e006fa commit 93bb751
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import umc.com.mobile.project.ui.home.viewmodel.HomeViewModel
class HomeFragment : Fragment() {
private var _binding: FragmentHomeBinding? = null
private val viewModel: HomeViewModel by viewModels()
private val gradDateViewModel: GradDateViewModel by activityViewModels()
// private val gradDateViewModel: GradDateViewModel by activityViewModels()
private val binding get() = _binding!!

override fun onCreateView(
Expand All @@ -39,7 +39,7 @@ class HomeFragment : Fragment() {
viewModel.getUserInfo() // 홈 화면 정보 조회 api

navigateFragment()
saveCheeringMemo() // 응원의 한마디 연결
// saveCheeringMemo() // 응원의 한마디 연결
setupRecyclerView() // recyclerView 연결
setupHomeInfoRetrofit() // 홈 화면 ui 연결

Expand All @@ -48,7 +48,7 @@ class HomeFragment : Fragment() {

override fun onPause() {
super.onPause()
saveCheeringMemo()
// saveCheeringMemo()
}

override fun onDestroyView() {
Expand All @@ -66,11 +66,12 @@ class HomeFragment : Fragment() {
}
}

/*
private fun saveCheeringMemo() {
gradDateViewModel.dateResponse.observe(viewLifecycleOwner, Observer {
binding.tvCheeringWord.text = it?.result?.message
})
}
*/

private fun setupRecyclerView() {
val adapter = NextPlanRVAdapter()
Expand Down

0 comments on commit 93bb751

Please sign in to comment.