Simplify population of setting values at startup by doing it in the SettingViewModel's init instead of a LaunchedEffect in Theme.kt.
Also we now pass dataStore to SettingsViewModel as a parameter when we create the SettingsViewModel in MainActivity, where we passed it to the rest of the app from there.
Simplify population of setting values at startup by doing it in the SettingViewModel's init instead of a LaunchedEffect in Theme.kt.
Also we now pass dataStore to SettingsViewModel as a parameter when we create the SettingsViewModel in MainActivity, where we passed it to the rest of the app from there.