fix: 메인 라이브 - 최근 종료한 라이브
- 비로그인 상태에서 터치시 로그인 페이지로 이동
This commit is contained in:
@@ -355,14 +355,18 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
|
||||
private fun setupLatestFinishedLiveChannel() {
|
||||
val adapter = LatestFinishedLiveAdapter {
|
||||
startActivity(
|
||||
Intent(
|
||||
requireContext(),
|
||||
UserProfileActivity::class.java
|
||||
).apply {
|
||||
putExtra(Constants.EXTRA_USER_ID, it)
|
||||
}
|
||||
)
|
||||
if (SharedPreferenceManager.token.isNotBlank()) {
|
||||
startActivity(
|
||||
Intent(
|
||||
requireContext(),
|
||||
UserProfileActivity::class.java
|
||||
).apply {
|
||||
putExtra(Constants.EXTRA_USER_ID, it)
|
||||
}
|
||||
)
|
||||
} else {
|
||||
(requireActivity() as MainActivity).showLoginActivity()
|
||||
}
|
||||
}
|
||||
|
||||
val recyclerView = binding.rvLatestFinishedLiveChannel
|
||||
|
||||
Reference in New Issue
Block a user