fix(android): pass in ViewModel from activity

This commit is contained in:
Harsh Shandilya 2023-12-31 21:21:44 +05:30
parent 4924e3eebe
commit 9a300aaf21

View file

@ -52,7 +52,12 @@ class SearchActivity : ComponentActivity() {
dynamicColor = true,
providedValues = arrayOf(LocalUriHandler provides urlLauncher),
) {
SearchScreen(urlLauncher, htmlConverter, { webUri = it })
SearchScreen(
urlLauncher = urlLauncher,
htmlConverter = htmlConverter,
setWebUri = { webUri = it },
viewModel = viewModel,
)
}
}
}