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

View File

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