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"
minSdk = 26
targetSdk = 35
versionCode = 17
versionName = "17"
versionCode = 18
versionName = "18"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

View File

@@ -22,6 +22,8 @@ class MainViewModel(private val prefs: AppPreferences) : ViewModel() {
current.copy(
temperatures = it.temperatures,
timersMinutes = it.timersMinutes,
selectedTemperature = it.selectedTemperature,
selectedTimerMinutes = it.selectedTimerMinutes,
brightness = it.brightness
)
}