From 343d0202283dd789b7769590a8c2798e8b9797dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mlynari=C4=8D?= Date: Thu, 12 Dec 2024 09:37:46 +0100 Subject: [PATCH] Move viewModel to param --- .../android/samples/socialite/ui/home/settings/Settings.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/google/android/samples/socialite/ui/home/settings/Settings.kt b/app/src/main/java/com/google/android/samples/socialite/ui/home/settings/Settings.kt index 3250d1ee..2391bb9f 100644 --- a/app/src/main/java/com/google/android/samples/socialite/ui/home/settings/Settings.kt +++ b/app/src/main/java/com/google/android/samples/socialite/ui/home/settings/Settings.kt @@ -40,8 +40,8 @@ import com.google.android.samples.socialite.ui.navigation.TopLevelDestination @Composable fun Settings( modifier: Modifier = Modifier, + viewModel: SettingsViewModel = hiltViewModel(), ) { - val viewModel: SettingsViewModel = hiltViewModel() Scaffold( modifier = modifier, topBar = {