Fix restore of last selected temperature/timer

This commit is contained in:
Tretzi
2026-05-04 20:42:41 -05:00
parent e4610b3cd2
commit 810ed31e7b
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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
) )
} }