Skip to content
Prev Previous commit
Next Next commit
Syntax
Change-Id: I1203d3a7f5c58770d6f544ad2606c5b2828cabdf
  • Loading branch information
JoseAlcerreca committed Nov 3, 2020
commit 88db781642c2ba9f34b6712a44aeacbf1aab79ff
5 changes: 3 additions & 2 deletions Owl/app/src/main/java/com/example/owl/ui/OwlApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ fun OwlApp(backDispatcher: OnBackPressedDispatcher) {
composable(Destinations.Courses) {
Courses(actions.selectCourse)
}
composable(Destinations.Courses + "/{${Destinations.CoursesArgs.CourseId}}") {
backStackEntry ->
composable(
Destinations.Courses + "/{${Destinations.CoursesArgs.CourseId}}"
) { backStackEntry ->
val courseId = requireNotNull(backStackEntry.arguments)
.getLong(Destinations.CoursesArgs.CourseId)
CourseDetails(
Expand Down