diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/AppScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/AppScreen.kt index 0b6d37eb3..e063818d8 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/AppScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/AppScreen.kt @@ -42,10 +42,9 @@ fun prepareSharedViewModel(act: MainActivity): SharedPreferencesViewModel { LaunchedEffect(key1 = sharedPreferencesViewModel) { sharedPreferencesViewModel.init() - sharedPreferencesViewModel.updateDisplaySettings(windowSizeClass, displayFeatures) } - LaunchedEffect(key1 = displayFeatures, key2 = windowSizeClass) { + LaunchedEffect(sharedPreferencesViewModel, displayFeatures, windowSizeClass) { sharedPreferencesViewModel.updateDisplaySettings(windowSizeClass, displayFeatures) }