Fix restore of last selected temperature/timer
This commit is contained in:
@@ -12,8 +12,8 @@ android {
|
|||||||
applicationId = "solutions.tretter.esunandroid"
|
applicationId = "solutions.tretter.esunandroid"
|
||||||
minSdk = 26
|
minSdk = 26
|
||||||
targetSdk = 35
|
targetSdk = 35
|
||||||
versionCode = 17
|
versionCode = 18
|
||||||
versionName = "17"
|
versionName = "18"
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ class MainViewModel(private val prefs: AppPreferences) : ViewModel() {
|
|||||||
current.copy(
|
current.copy(
|
||||||
temperatures = it.temperatures,
|
temperatures = it.temperatures,
|
||||||
timersMinutes = it.timersMinutes,
|
timersMinutes = it.timersMinutes,
|
||||||
|
selectedTemperature = it.selectedTemperature,
|
||||||
|
selectedTimerMinutes = it.selectedTimerMinutes,
|
||||||
brightness = it.brightness
|
brightness = it.brightness
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user