We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f5c1ad commit 86bb045Copy full SHA for 86bb045
src/main/kotlin/com/hoc081098/kotlin_playground/solivagant/main.kt
@@ -48,8 +48,9 @@ fun main() {
48
onCloseRequest = ::exitApplication,
49
title = "Solivagant",
50
) {
51
- val lifecycleOwner = checkNotNull(rememberWindowLifecycleOwner()) { "rememberWindowLifecycleOwner returns null" }
52
- savedStateSupport.ProvideCompositionLocals(LocalLifecycleOwner provides lifecycleOwner) { MyApp() }
+ savedStateSupport.ProvideCompositionLocals(LocalLifecycleOwner provides rememberWindowLifecycleOwner()!!) {
+ MyApp()
53
+ }
54
}
55
56
0 commit comments