From 700c8b4c042cd138494bd3d1774f8ca84fb0e507 Mon Sep 17 00:00:00 2001 From: LeGend-wLw <874644990@qq.com> Date: Sun, 4 Feb 2024 23:48:03 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=E7=A7=BB=E9=99=A4TVList=E7=9A=84=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/lizongying/mytv/Request.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/lizongying/mytv/Request.kt b/app/src/main/java/com/lizongying/mytv/Request.kt index e37aef6..2f073f6 100644 --- a/app/src/main/java/com/lizongying/mytv/Request.kt +++ b/app/src/main/java/com/lizongying/mytv/Request.kt @@ -95,8 +95,6 @@ class Request { fun initYSP(context: Context) { ysp = YSP(context) - //TODO 不确定在哪里初始化 - TVList.init(context) } var call: Call? = null @@ -369,7 +367,7 @@ class Request { continue } val tv = - TVList.list[channelType]?.find { it.title == mapping[item.channelName] } + TVList.list?.get(channelType)?.find { it.title == mapping[item.channelName] } if (tv != null) { tv.logo = item.tvLogo tv.pid = item.pid