mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-11 10:18:05 +09:00
DROID-783 | Fixed possibility to cancel account deletion (#2815)
DROID-783 Account | Fix | Screen with account-deletion should be removed from navigation stack when user cancels deletion
This commit is contained in:
parent
ca3f5be9ed
commit
b03a036354
1 changed files with 4 additions and 1 deletions
|
@ -91,7 +91,10 @@ class DeletedAccountFragment : BaseComposeFragment() {
|
|||
vm.commands.collect { command ->
|
||||
when (command) {
|
||||
DeletedAccountViewModel.Command.Resume -> {
|
||||
findNavController().navigate(R.id.main_navigation)
|
||||
findNavController().apply {
|
||||
popBackStack()
|
||||
navigate(R.id.main_navigation)
|
||||
}
|
||||
}
|
||||
DeletedAccountViewModel.Command.Logout -> {
|
||||
findNavController().navigate(R.id.main_navigation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue