mirror of
https://github.com/lizongying/my-tv.git
synced 2026-11-21 19:06:31 +08:00
keep screen on
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user