添加初始化TVList行为
This commit is contained in:
parent
a4c95efd71
commit
dd8df63b01
|
@ -139,6 +139,7 @@ class MainFragment : BrowseSupportFragment() {
|
||||||
val cardPresenter = CardPresenter(viewLifecycleOwner)
|
val cardPresenter = CardPresenter(viewLifecycleOwner)
|
||||||
|
|
||||||
var idx: Long = 0
|
var idx: Long = 0
|
||||||
|
TVList.init(requireContext())
|
||||||
for ((k, v) in TVList.list) {
|
for ((k, v) in TVList.list) {
|
||||||
val listRowAdapter = ArrayObjectAdapter(cardPresenter)
|
val listRowAdapter = ArrayObjectAdapter(cardPresenter)
|
||||||
for ((idx2, v1) in v.withIndex()) {
|
for ((idx2, v1) in v.withIndex()) {
|
||||||
|
|
|
@ -95,6 +95,8 @@ class Request {
|
||||||
|
|
||||||
fun initYSP(context: Context) {
|
fun initYSP(context: Context) {
|
||||||
ysp = YSP(context)
|
ysp = YSP(context)
|
||||||
|
//TODO 不确定在哪里初始化
|
||||||
|
TVList.init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
var call: Call<LiveInfo>? = null
|
var call: Call<LiveInfo>? = null
|
||||||
|
|
Loading…
Reference in New Issue