1
0
Fork 0
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:
Evgenii Kozlov 2025-01-17 13:54:48 +01:00 committed by GitHub
parent 7874bf3b1c
commit 9bf29ecbda
Signed by: github
GPG key ID: B5690EEEBB952194
7 changed files with 29 additions and 78 deletions

View file

@ -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()
}
}