diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/MainActivity.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/MainActivity.kt index 8e0703715..b7cc16d45 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/MainActivity.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/MainActivity.kt @@ -72,7 +72,7 @@ class MainActivity : AppCompatActivity() { StringResSetup() val sharedPreferencesViewModel = prepareSharedViewModel() - AmethystTheme(sharedPreferencesViewModel) { + AmethystTheme(sharedPreferencesViewModel.sharedPrefs.theme) { val accountStateViewModel: AccountStateViewModel = viewModel() LaunchedEffect(key1 = Unit) {