kopia lustrzana https://github.com/vitorpamplona/amethyst
15 wiersze
354 B
Kotlin
15 wiersze
354 B
Kotlin
package com.vitorpamplona.amethyst.ui.screen
|
|
|
|
import androidx.lifecycle.LiveData
|
|
import androidx.lifecycle.MutableLiveData
|
|
import androidx.lifecycle.ViewModel
|
|
|
|
class ThemeViewModel : ViewModel() {
|
|
private val _theme = MutableLiveData(0)
|
|
val theme: LiveData<Int> = _theme
|
|
|
|
fun onChange(newValue: Int) {
|
|
_theme.value = newValue
|
|
}
|
|
}
|