Skip to content

Commit 86bb045

Browse files
committed
done solivagant-navigation
1 parent 0f5c1ad commit 86bb045

File tree

1 file changed

+3
-2
lines changed
  • src/main/kotlin/com/hoc081098/kotlin_playground/solivagant

1 file changed

+3
-2
lines changed

src/main/kotlin/com/hoc081098/kotlin_playground/solivagant/main.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ fun main() {
4848
onCloseRequest = ::exitApplication,
4949
title = "Solivagant",
5050
) {
51-
val lifecycleOwner = checkNotNull(rememberWindowLifecycleOwner()) { "rememberWindowLifecycleOwner returns null" }
52-
savedStateSupport.ProvideCompositionLocals(LocalLifecycleOwner provides lifecycleOwner) { MyApp() }
51+
savedStateSupport.ProvideCompositionLocals(LocalLifecycleOwner provides rememberWindowLifecycleOwner()!!) {
52+
MyApp()
53+
}
5354
}
5455
}
5556
}

0 commit comments

Comments
 (0)