라이브 방 - 스피커 최대 10 -> 5명으로 수정
This commit is contained in:
parent
6a06a46713
commit
0a56ef1227
|
@ -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("스피커 정원이 초과했습니다.")
|
||||
|
|
|
@ -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}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue