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 13af794872
commit 24b76f2001
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,