mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
Remove unused code
This commit is contained in:
parent
1e79993563
commit
7b7461ce3b
1 changed files with 0 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
|||
package com.finnmglas.launcher.settings
|
||||
|
||||
import androidx.lifecycle.LiveData
|
||||
import androidx.lifecycle.MutableLiveData
|
||||
import androidx.lifecycle.Transformations
|
||||
import androidx.lifecycle.ViewModel
|
||||
|
||||
class SettingsPageViewModel : ViewModel() {
|
||||
|
||||
private val _index = MutableLiveData<Int>()
|
||||
val text: LiveData<String> = Transformations.map(_index) {
|
||||
"Tab $it"
|
||||
}
|
||||
|
||||
fun setIndex(index: Int) {
|
||||
_index.value = index
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue