|
|
@@ -64,10 +64,10 @@ class LiveBroadcastListActivity :
|
|
|
rvLiveBroadcast.adapter = liveBroadcastAdapter
|
|
|
liveBroadcastAdapter.setData(liveBroadcastList)
|
|
|
liveBroadcastAdapter.onLiveBroadcastImageClickListener =
|
|
|
- { url, method, title, id, position ->
|
|
|
+ { url, method, title, id ->
|
|
|
when (method) {
|
|
|
"预约直播" -> {
|
|
|
- appointmentLive(id, position)
|
|
|
+ appointmentLive(id)
|
|
|
}
|
|
|
"直播中" -> {
|
|
|
initPermission(url, id, title)
|
|
|
@@ -114,7 +114,7 @@ class LiveBroadcastListActivity :
|
|
|
/**
|
|
|
* 预约直播
|
|
|
*/
|
|
|
- private fun appointmentLive(method: String, position: Int) {
|
|
|
+ private fun appointmentLive(method: String) {
|
|
|
viewModel.reservationLive(method, fail = {
|
|
|
it.show()
|
|
|
}, success = {
|