라이브 방 - 스피커 최대 10 -> 5명으로 수정

This commit is contained in:
klaus 2023-08-21 05:37:49 +09:00
parent 6a06a46713
commit 0a56ef1227
2 changed files with 4 additions and 4 deletions

View File

@ -209,7 +209,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
) )
}, },
onClickInviteSpeaker = { memberId -> onClickInviteSpeaker = { memberId ->
if (speakerListAdapter.itemCount <= 9) { if (speakerListAdapter.itemCount <= 4) {
inviteSpeaker(memberId) inviteSpeaker(memberId)
} else { } else {
showToast("스피커 정원이 초과했습니다.") showToast("스피커 정원이 초과했습니다.")
@ -285,7 +285,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
) )
}, },
onClickInviteSpeaker = { onClickInviteSpeaker = {
if (speakerListAdapter.itemCount <= 9) { if (speakerListAdapter.itemCount <= 4) {
inviteSpeaker(it) inviteSpeaker(it)
} else { } else {
showToast("스피커 정원이 초과했습니다.") showToast("스피커 정원이 초과했습니다.")

View File

@ -57,8 +57,8 @@ data class LiveRoomProfileItemSpeakerTitle(
val itemBinding = binding as ItemLiveRoomProfileHeaderBinding val itemBinding = binding as ItemLiveRoomProfileHeaderBinding
itemBinding.tvTitle.text = title itemBinding.tvTitle.text = title
itemBinding.tvSpeakerCount.text = "$speakerCount" itemBinding.tvSpeakerCount.text = "$speakerCount"
itemBinding.tvSpeakerTotalCount.text = if (totalUserCount > 9) { itemBinding.tvSpeakerTotalCount.text = if (totalUserCount > 4) {
"/9" "/4"
} else { } else {
"/${totalUserCount - 1}" "/${totalUserCount - 1}"
} }