본인이 스피커일 때 리스너로 변경하는 버튼 추가

This commit is contained in:
2024-03-14 14:48:43 +09:00
parent 2a84d2dc41
commit 39e49b08d9
2 changed files with 32 additions and 0 deletions

View File

@@ -1087,6 +1087,9 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
binding.ivNotiMicrophoneMute.visibility = View.GONE
speakerListAdapter.muteSpeakers.remove(SharedPreferenceManager.userId.toInt())
}, 100)
binding.tvChangeListener.visibility = View.GONE
binding.tvChangeListener.setOnClickListener { }
}
private fun setBroadcaster() {
@@ -1098,6 +1101,19 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
binding.flMicrophoneMute.visibility = View.VISIBLE
binding.ivNotiMicrophoneMute.visibility = View.GONE
}, 100)
binding.tvChangeListener.visibility = View.VISIBLE
binding.tvChangeListener.setOnClickListener {
handler.post {
viewModel.setListener(
roomId,
SharedPreferenceManager.userId
) {
setAudience()
viewModel.getRoomInfo(roomId)
}
}
}
}
private fun changeListenerMessage(peerId: Long, isFromManager: Boolean = false) {