Fix crash when clicking fast on back key on the Add account screen.

This commit is contained in:
Benoit Marty 2025-11-21 15:42:15 +01:00 committed by Benoit Marty
parent 31e9abbb98
commit e475a969d7
5 changed files with 16 additions and 1 deletions

View file

@ -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,

View file

@ -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,