라이브
- 라이브 중인 아이템 터치시 비로그인 상태에서는 로그인 페이지로 이동하는 기능 추가
This commit is contained in:
@@ -749,6 +749,8 @@ class AudioContentMainTabHomeFragment : BaseFragment<FragmentAudioContentMainTab
|
|||||||
putExtra(Constants.EXTRA_USER_ID, creatorId)
|
putExtra(Constants.EXTRA_USER_ID, creatorId)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
(requireActivity() as MainActivity).showLoginActivity()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -351,6 +351,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
|||||||
.rvSudaNow
|
.rvSudaNow
|
||||||
|
|
||||||
liveNowAdapter = LiveNowAdapter {
|
liveNowAdapter = LiveNowAdapter {
|
||||||
|
if (SharedPreferenceManager.token.isNotBlank()) {
|
||||||
val detailFragment = LiveRoomDetailFragment(
|
val detailFragment = LiveRoomDetailFragment(
|
||||||
it.roomId,
|
it.roomId,
|
||||||
onClickParticipant = { enterLiveRoom(it.roomId) },
|
onClickParticipant = { enterLiveRoom(it.roomId) },
|
||||||
@@ -365,6 +366,9 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
|||||||
requireActivity().supportFragmentManager,
|
requireActivity().supportFragmentManager,
|
||||||
detailFragment.tag
|
detailFragment.tag
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
(requireActivity() as MainActivity).showLoginActivity()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
recyclerView.layoutManager = LinearLayoutManager(
|
recyclerView.layoutManager = LinearLayoutManager(
|
||||||
|
|||||||
Reference in New Issue
Block a user