Updated on 2026-08-14
This commit is contained in:
parent
261a16113f
commit
5036f8a383
39 changed files with 1168 additions and 503 deletions
|
|
@ -75,8 +75,8 @@ class MainActivity : AppCompatActivity(), SnackbarHandler {
|
|||
|
||||
val backStackIsEmpty = supportFragmentManager.backStackEntryCount == 0
|
||||
val isScannedBefore = store.state.globalState.scanNoteResponse != null
|
||||
val isOnboardingStarted = store.state.onboardingState.onboardingData?.scanNoteResponse != null
|
||||
if ((backStackIsEmpty || isScannedBefore) && !isOnboardingStarted) {
|
||||
val isOnboardingServiceActive = store.state.globalState.onboardingService != null
|
||||
if (backStackIsEmpty || (!isOnboardingServiceActive && !isScannedBefore)) {
|
||||
store.dispatch(NavigationAction.NavigateTo(AppScreen.Home))
|
||||
}
|
||||
intentHandler.handleIntent(intent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue