Fix crash when clicking fast on back key on the Add account screen.
This commit is contained in:
parent
31e9abbb98
commit
e475a969d7
5 changed files with 16 additions and 1 deletions
|
|
@ -57,6 +57,7 @@ class NotLoggedInFlowNode(
|
|||
|
||||
interface Callback : Plugin {
|
||||
fun navigateToBugReport()
|
||||
fun onDone()
|
||||
}
|
||||
|
||||
private val callback: Callback = callback()
|
||||
|
|
@ -83,6 +84,10 @@ class NotLoggedInFlowNode(
|
|||
override fun navigateToBugReport() {
|
||||
callback.navigateToBugReport()
|
||||
}
|
||||
|
||||
override fun onDone() {
|
||||
callback.onDone()
|
||||
}
|
||||
}
|
||||
loginEntryPoint.createNode(
|
||||
parentNode = this,
|
||||
|
|
|
|||
|
|
@ -243,6 +243,10 @@ class RootFlowNode(
|
|||
override fun navigateToBugReport() {
|
||||
backstack.push(NavTarget.BugReport)
|
||||
}
|
||||
|
||||
override fun onDone() {
|
||||
backstack.pop()
|
||||
}
|
||||
}
|
||||
val params = NotLoggedInFlowNode.Params(
|
||||
loginParams = navTarget.params,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue