Skip to content

Commit

Permalink
[ADD] #307 리프레시 관련 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeha committed Feb 10, 2024
1 parent 0dce6cf commit 2632907
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,11 @@ class DiscoverFragment : BindingFragment<FragmentDiscoverBinding>(R.layout.fragm

private fun initRefreshLayoutListener() {
binding.refreshLayout.setOnRefreshListener {
// 리프레시 직후에 비어있는 리스트로 리사이클러뷰 초기화
multiViewAdapter.initMarathonCourses(emptyList())
multiViewAdapter.initRecommendCourses(emptyList())

// 서버통신 직후에 첫 페이지 데이터로 리사이클러뷰 초기화
viewModel.refreshDiscoverCourses()
binding.refreshLayout.isRefreshing = false
}
Expand Down

0 comments on commit 2632907

Please sign in to comment.