Updated on 2026-08-14
This commit is contained in:
parent
4ce9701ad4
commit
11fbbe8815
1 changed files with 2 additions and 2 deletions
|
|
@ -34,14 +34,14 @@ internal class DefaultRouter(
|
|||
|
||||
override fun popTo(route: Route, onComplete: (isSuccess: Boolean) -> Unit) {
|
||||
popTo(
|
||||
predicate = { it == route },
|
||||
predicate = { it != route },
|
||||
onComplete = onComplete,
|
||||
)
|
||||
}
|
||||
|
||||
override fun popTo(routeClass: KClass<out Route>, onComplete: (isSuccess: Boolean) -> Unit) {
|
||||
popTo(
|
||||
predicate = { routeClass.isInstance(it) },
|
||||
predicate = { it::class != routeClass },
|
||||
onComplete = onComplete,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue