compatible 16:10

This commit is contained in:
Li ZongYing
2024-01-02 11:24:47 +08:00
parent 58ca2dc480
commit d4cc6bc64c
23 changed files with 36 additions and 30 deletions
@@ -9,8 +9,6 @@ class TVListViewModel : ViewModel() {
var maxNum = mutableListOf<Int>()
private var sharedPref: SharedPreferences? = null
private val tvListViewModel = MutableLiveData<MutableList<TVViewModel>>()
private val _itemPosition = MutableLiveData<Int>()
@@ -48,13 +46,6 @@ class TVListViewModel : ViewModel() {
_itemPositionCurrent.value = position
}
fun savePosition(position: Int) {
with(sharedPref!!.edit()) {
putInt("position", position)
apply()
}
}
fun size(): Int {
return tvListViewModel.value!!.size
}