parent
0077f172b6
commit
c3d5c12e6b
|
@ -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,20 +351,24 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||||
.rvSudaNow
|
.rvSudaNow
|
||||||
|
|
||||||
liveNowAdapter = LiveNowAdapter {
|
liveNowAdapter = LiveNowAdapter {
|
||||||
val detailFragment = LiveRoomDetailFragment(
|
if (SharedPreferenceManager.token.isNotBlank()) {
|
||||||
it.roomId,
|
val detailFragment = LiveRoomDetailFragment(
|
||||||
onClickParticipant = { enterLiveRoom(it.roomId) },
|
it.roomId,
|
||||||
onClickReservation = {},
|
onClickParticipant = { enterLiveRoom(it.roomId) },
|
||||||
onClickModify = {},
|
onClickReservation = {},
|
||||||
onClickStart = {},
|
onClickModify = {},
|
||||||
onClickCancel = {}
|
onClickStart = {},
|
||||||
)
|
onClickCancel = {}
|
||||||
if (detailFragment.isAdded) return@LiveNowAdapter
|
)
|
||||||
|
if (detailFragment.isAdded) return@LiveNowAdapter
|
||||||
|
|
||||||
detailFragment.show(
|
detailFragment.show(
|
||||||
requireActivity().supportFragmentManager,
|
requireActivity().supportFragmentManager,
|
||||||
detailFragment.tag
|
detailFragment.tag
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
(requireActivity() as MainActivity).showLoginActivity()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
recyclerView.layoutManager = LinearLayoutManager(
|
recyclerView.layoutManager = LinearLayoutManager(
|
||||||
|
|
Loading…
Reference in New Issue