Navigation.kt: Removed debug println.
This commit is contained in:
parent
5804a69ce2
commit
6b0ef799c6
1 changed files with 0 additions and 3 deletions
|
|
@ -190,9 +190,6 @@ class Navigator @AssistedInject constructor(
|
||||||
inline fun <reified S : Screen> retrieveScreen(): S {
|
inline fun <reified S : Screen> retrieveScreen(): S {
|
||||||
for (arg in screens.value) {
|
for (arg in screens.value) {
|
||||||
if (arg.getRoute() == getRoute<S>()) {
|
if (arg.getRoute() == getRoute<S>()) {
|
||||||
println("Arg route: ${arg.getRoute()}")
|
|
||||||
println("Screen route: ${getRoute<S>()}")
|
|
||||||
|
|
||||||
val screen = arg as? S
|
val screen = arg as? S
|
||||||
?: throw ClassCastException("Cannot cast ${arg::class} as ${S::class}")
|
?: throw ClassCastException("Cannot cast ${arg::class} as ${S::class}")
|
||||||
return screen
|
return screen
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue