keep screen on

This commit is contained in:
Li ZongYing
2023-12-16 15:09:09 +08:00
parent d8fffbb402
commit 434915fd3d
12 changed files with 45 additions and 15 deletions
@@ -1,6 +1,5 @@
package com.lizongying.mytv.models
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.lizongying.mytv.TV
@@ -41,4 +40,8 @@ class TVListViewModel : ViewModel() {
fun getTVModel(id: Int): TVViewModel? {
return tvModelListLiveData.value?.get(id)
}
fun size(): Int {
return tvListLiveData.value!!.size
}
}