mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
dropping the backstack when switching to the account created flow to avoid going back to the sign up screens
This commit is contained in:
parent
d186de7472
commit
6687e2cad4
1 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@ import im.vector.app.core.extensions.POP_BACK_STACK_EXCLUSIVE
|
|||
import im.vector.app.core.extensions.addFragment
|
||||
import im.vector.app.core.extensions.addFragmentToBackstack
|
||||
import im.vector.app.core.extensions.exhaustive
|
||||
import im.vector.app.core.extensions.replaceFragment
|
||||
import im.vector.app.core.platform.ScreenOrientationLocker
|
||||
import im.vector.app.core.platform.VectorBaseActivity
|
||||
import im.vector.app.databinding.ActivityLoginBinding
|
||||
|
@ -374,10 +375,10 @@ class FtueAuthVariant(
|
|||
|
||||
private fun onAccountCreated() {
|
||||
if (vectorFeatures.isOnboardingPersonalizeEnabled()) {
|
||||
activity.addFragmentToBackstack(
|
||||
activity.supportFragmentManager.popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE)
|
||||
activity.replaceFragment(
|
||||
views.loginFragmentContainer,
|
||||
FtueAuthAccountCreatedFragment::class.java,
|
||||
option = commonOption
|
||||
)
|
||||
} else {
|
||||
navigateToHome(createdAccount = true)
|
||||
|
|
Loading…
Reference in a new issue