This commit is contained in:
Benoit Marty 2021-04-15 16:22:25 +02:00 committed by Benoit Marty
parent af3893cdc9
commit 5d65a290d2
3 changed files with 5 additions and 5 deletions

View file

@ -214,7 +214,7 @@ open class LoginActivity2 : VectorBaseActivity<ActivityLoginBinding>(), ToolbarC
LoginWaitForEmailFragmentArgument(event.email),
tag = FRAGMENT_REGISTRATION_STAGE_TAG,
option = commonOption)
is LoginViewEvents2.OpenPasswordScreen -> {
is LoginViewEvents2.OpenSigninPasswordScreen -> {
addFragmentToBackstack(R.id.loginFragmentContainer,
LoginFragment2SigninPassword::class.java,
tag = FRAGMENT_LOGIN_TAG,

View file

@ -30,7 +30,7 @@ sealed class LoginViewEvents2 : VectorViewEvents {
object OutdatedHomeserver : LoginViewEvents2()
// Navigation event
object OpenPasswordScreen : LoginViewEvents2()
object OpenSigninPasswordScreen : LoginViewEvents2()
object OpenSignupPasswordScreen : LoginViewEvents2()
object OpenSignInEnterIdentifierScreen : LoginViewEvents2()

View file

@ -646,7 +646,7 @@ class LoginViewModel2 @AssistedInject constructor(
is LoginMode.SsoAndPassword -> {
retrieveProfileInfo(action.username)
// We can navigate to the password screen
LoginViewEvents2.OpenPasswordScreen
LoginViewEvents2.OpenSigninPasswordScreen
}
is LoginMode.Sso -> {
LoginViewEvents2.OpenSsoOnlyScreen