Merge pull request #3285 from vector-im/feature/bma/developer_error
Properly clean the back stack if the user cancel registration when waiting for email/msisdn validation
This commit is contained in:
commit
c88fb3a940
@ -23,6 +23,7 @@ Bugfix 🐛:
|
|||||||
- Fix missing sender information after edits (#3184)
|
- Fix missing sender information after edits (#3184)
|
||||||
- Fix read marker not updating automatically (#3267)
|
- Fix read marker not updating automatically (#3267)
|
||||||
- Sent video does not contains duration (#3272)
|
- Sent video does not contains duration (#3272)
|
||||||
|
- Properly clean the back stack if the user cancel registration when waiting for email validation
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
@ -183,18 +183,24 @@ open class LoginActivity : VectorBaseActivity<ActivityLoginBinding>(), ToolbarCo
|
|||||||
// Go back to the login fragment
|
// Go back to the login fragment
|
||||||
supportFragmentManager.popBackStack(FRAGMENT_LOGIN_TAG, POP_BACK_STACK_EXCLUSIVE)
|
supportFragmentManager.popBackStack(FRAGMENT_LOGIN_TAG, POP_BACK_STACK_EXCLUSIVE)
|
||||||
}
|
}
|
||||||
is LoginViewEvents.OnSendEmailSuccess ->
|
is LoginViewEvents.OnSendEmailSuccess -> {
|
||||||
|
// Pop the enter email Fragment
|
||||||
|
supportFragmentManager.popBackStack(FRAGMENT_REGISTRATION_STAGE_TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE)
|
||||||
addFragmentToBackstack(R.id.loginFragmentContainer,
|
addFragmentToBackstack(R.id.loginFragmentContainer,
|
||||||
LoginWaitForEmailFragment::class.java,
|
LoginWaitForEmailFragment::class.java,
|
||||||
LoginWaitForEmailFragmentArgument(loginViewEvents.email),
|
LoginWaitForEmailFragmentArgument(loginViewEvents.email),
|
||||||
tag = FRAGMENT_REGISTRATION_STAGE_TAG,
|
tag = FRAGMENT_REGISTRATION_STAGE_TAG,
|
||||||
option = commonOption)
|
option = commonOption)
|
||||||
is LoginViewEvents.OnSendMsisdnSuccess ->
|
}
|
||||||
|
is LoginViewEvents.OnSendMsisdnSuccess -> {
|
||||||
|
// Pop the enter Msisdn Fragment
|
||||||
|
supportFragmentManager.popBackStack(FRAGMENT_REGISTRATION_STAGE_TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE)
|
||||||
addFragmentToBackstack(R.id.loginFragmentContainer,
|
addFragmentToBackstack(R.id.loginFragmentContainer,
|
||||||
LoginGenericTextInputFormFragment::class.java,
|
LoginGenericTextInputFormFragment::class.java,
|
||||||
LoginGenericTextInputFormFragmentArgument(TextInputFormFragmentMode.ConfirmMsisdn, true, loginViewEvents.msisdn),
|
LoginGenericTextInputFormFragmentArgument(TextInputFormFragmentMode.ConfirmMsisdn, true, loginViewEvents.msisdn),
|
||||||
tag = FRAGMENT_REGISTRATION_STAGE_TAG,
|
tag = FRAGMENT_REGISTRATION_STAGE_TAG,
|
||||||
option = commonOption)
|
option = commonOption)
|
||||||
|
}
|
||||||
is LoginViewEvents.Failure,
|
is LoginViewEvents.Failure,
|
||||||
is LoginViewEvents.Loading ->
|
is LoginViewEvents.Loading ->
|
||||||
// This is handled by the Fragments
|
// This is handled by the Fragments
|
||||||
|
Loading…
Reference in New Issue
Block a user