|
@@ -1,9 +1,8 @@
|
|
|
package com.yingyang.livebroadcast.activity.list
|
|
|
|
|
|
-import android.content.Intent
|
|
|
-import android.provider.Settings
|
|
|
import androidx.recyclerview.widget.GridLayoutManager
|
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
|
+import com.yingyang.livebroadcast.R
|
|
|
import com.yingyang.livebroadcast.adapter.LiveBroadcastAdapter
|
|
|
import com.yingyang.livebroadcast.databinding.ActivityLiveBroadcastListBinding
|
|
|
import com.yingyang.livebroadcast.entity.Record
|
|
@@ -48,6 +47,19 @@ class LiveBroadcastListActivity :
|
|
|
liveBroadcastAdapter.onLiveBroadcastImageClickListener = { bean ->
|
|
|
initPermission(bean)
|
|
|
}
|
|
|
+ radioLive.setOnCheckedChangeListener { group, checkedId ->
|
|
|
+ when (checkedId) {
|
|
|
+ R.id.rdb_appointment -> {
|
|
|
+ liveBroadcastAdapter.setType("预约直播")
|
|
|
+ }
|
|
|
+ R.id.rdb_live -> {
|
|
|
+ liveBroadcastAdapter.setType("直播中")
|
|
|
+ }
|
|
|
+ else -> {
|
|
|
+ liveBroadcastAdapter.setType("直播回放")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -69,6 +81,7 @@ class LiveBroadcastListActivity :
|
|
|
}
|
|
|
|
|
|
override fun initData() {
|
|
|
+ liveBroadcastAdapter.setType("预约直播")
|
|
|
loadData(true)
|
|
|
}
|
|
|
|
|
@@ -123,7 +136,11 @@ class LiveBroadcastListActivity :
|
|
|
|
|
|
override fun hasPermission(granted: MutableList<String>?, isAll: Boolean) {
|
|
|
if (isAll) {
|
|
|
- JumpUtil.jumpActivityWithUrl(RouterUrlCommon.liveBroadcast, bean.webrtcPull, this@LiveBroadcastListActivity)
|
|
|
+ JumpUtil.jumpActivityWithUrl(
|
|
|
+ RouterUrlCommon.liveBroadcast,
|
|
|
+ bean.webrtcPull,
|
|
|
+ this@LiveBroadcastListActivity
|
|
|
+ )
|
|
|
} else {
|
|
|
showTipDialog()
|
|
|
}
|