Skip to content

Commit

Permalink
Continue to upgrade screen from google sign in when appropriate (#1204)
Browse files Browse the repository at this point in the history
Co-authored-by: ashiagr <[email protected]>
  • Loading branch information
mchowning and ashiagr authored Jul 27, 2023
1 parent 28b7fe8 commit 63cbc99
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
([#1009](https://github.com/Automattic/pocket-casts-android/pull/1009))
* Fixed swiping to open Up Next queue in landscape and on foldables
([#1209](https://github.com/Automattic/pocket-casts-android/pull/1209))
* Fixed upgrade flow when signing in with Google account
([#1204](https://github.com/Automattic/pocket-casts-android/pull/1204))


7.44
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,21 @@ private fun Content(
if (state.isNewAccount) {
onAccountCreated()
} else {
exitOnboarding()
when (flow) {
OnboardingFlow.InitialOnboarding,
OnboardingFlow.LoggedOut,
is OnboardingFlow.PlusAccountUpgrade,
is OnboardingFlow.PlusUpsell -> exitOnboarding()

is OnboardingFlow.PatronAccountUpgrade,
OnboardingFlow.PlusAccountUpgradeNeedsLogin ->
navController.navigate(
OnboardingNavRoute.PlusUpgrade.routeWithSource(OnboardingUpgradeSource.LOGIN)
) {
// clear backstack after successful login
popUpTo(OnboardingNavRoute.logInOrSignUp) { inclusive = true }
}
}
}
},
)
Expand Down

0 comments on commit 63cbc99

Please sign in to comment.