mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3219 App | Tech | Root space screen navigation flow (#2005)
This commit is contained in:
parent
7874bf3b1c
commit
9bf29ecbda
7 changed files with 29 additions and 78 deletions
|
@ -1768,7 +1768,7 @@ class HomeScreenViewModel(
|
|||
}
|
||||
}
|
||||
|
||||
fun onBackClicked(isSpaceRoot: Boolean = false) {
|
||||
fun onBackClicked(isSpaceRoot: Boolean) {
|
||||
viewModelScope.launch {
|
||||
if (spaceManager.getState() is SpaceManager.State.Space) {
|
||||
// Proceed with releasing resources before exiting
|
||||
|
@ -1788,6 +1788,7 @@ class HomeScreenViewModel(
|
|||
}
|
||||
}
|
||||
if (isSpaceRoot) {
|
||||
Timber.d("Root space screen. Releasing resources...")
|
||||
proceedWithClearingSpaceBeforeExitingToVault()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue