라이브 메인

- 당겨서 새로고침 제거
- 새로고침 버튼 추가
This commit is contained in:
2024-05-07 19:02:58 +09:00
parent 8c6aff1623
commit 3c82ff1c4e
3 changed files with 76 additions and 56 deletions

View File

@@ -129,8 +129,6 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
val intent = Intent(requireContext(), LiveRoomCreateActivity::class.java)
activityResultLauncher.launch(intent)
}
binding.swipeRefreshLayout.setOnRefreshListener { refreshSummary() }
}
private fun refreshSummary() {
@@ -140,8 +138,6 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
message = "라이브를 불러오고 있습니다."
viewModel.getSummary()
binding.swipeRefreshLayout.isRefreshing = false
}
@SuppressLint("NotifyDataSetChanged")
@@ -287,6 +283,11 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
startActivity(Intent(requireContext(), LiveNowAllActivity::class.java))
}
binding
.layoutLiveNow
.llRefresh
.setOnClickListener { refreshSummary() }
val recyclerView = binding
.layoutLiveNow
.rvSudaNow