mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 22:26:29 +08:00
添加初始化TVList行为
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user