mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-27 09:31:20 +01:00
adding all the ftue auth fragments to the fragment module
This commit is contained in:
parent
8d819c76ab
commit
98b88c104a
@ -94,6 +94,18 @@ import im.vector.app.features.login2.created.AccountCreatedFragment
|
|||||||
import im.vector.app.features.login2.terms.LoginTermsFragment2
|
import im.vector.app.features.login2.terms.LoginTermsFragment2
|
||||||
import im.vector.app.features.matrixto.MatrixToRoomSpaceFragment
|
import im.vector.app.features.matrixto.MatrixToRoomSpaceFragment
|
||||||
import im.vector.app.features.matrixto.MatrixToUserFragment
|
import im.vector.app.features.matrixto.MatrixToUserFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthCaptchaFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthGenericTextInputFormFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthLoginFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthResetPasswordFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthResetPasswordMailConfirmationFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthResetPasswordSuccessFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthServerSelectionFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthSignUpSignInSelectionFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthSplashFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthWaitForEmailFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.FtueAuthWebFragment
|
||||||
|
import im.vector.app.features.onboarding.ftueauth.terms.FtueAuthTermsFragment
|
||||||
import im.vector.app.features.pin.PinFragment
|
import im.vector.app.features.pin.PinFragment
|
||||||
import im.vector.app.features.poll.create.CreatePollFragment
|
import im.vector.app.features.poll.create.CreatePollFragment
|
||||||
import im.vector.app.features.qrcode.QrCodeScannerFragment
|
import im.vector.app.features.qrcode.QrCodeScannerFragment
|
||||||
@ -386,6 +398,66 @@ interface FragmentModule {
|
|||||||
@FragmentKey(LoginWaitForEmailFragment2::class)
|
@FragmentKey(LoginWaitForEmailFragment2::class)
|
||||||
fun bindLoginWaitForEmailFragment2(fragment: LoginWaitForEmailFragment2): Fragment
|
fun bindLoginWaitForEmailFragment2(fragment: LoginWaitForEmailFragment2): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthCaptchaFragment::class)
|
||||||
|
fun bindFtueAuthCaptchaFragment(fragment: FtueAuthCaptchaFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthGenericTextInputFormFragment::class)
|
||||||
|
fun bindFtueAuthGenericTextInputFormFragment(fragment: FtueAuthGenericTextInputFormFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthLoginFragment::class)
|
||||||
|
fun bindFtueAuthLoginFragment(fragment: FtueAuthLoginFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthResetPasswordFragment::class)
|
||||||
|
fun bindFtueAuthResetPasswordFragment(fragment: FtueAuthResetPasswordFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthResetPasswordMailConfirmationFragment::class)
|
||||||
|
fun bindFtueAuthResetPasswordMailConfirmationFragment(fragment: FtueAuthResetPasswordMailConfirmationFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthResetPasswordSuccessFragment::class)
|
||||||
|
fun bindFtueAuthResetPasswordSuccessFragment(fragment: FtueAuthResetPasswordSuccessFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthServerSelectionFragment::class)
|
||||||
|
fun bindFtueAuthServerSelectionFragment(fragment: FtueAuthServerSelectionFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthSignUpSignInSelectionFragment::class)
|
||||||
|
fun bindFtueAuthSignUpSignInSelectionFragment(fragment: FtueAuthSignUpSignInSelectionFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthSplashFragment::class)
|
||||||
|
fun bindFtueAuthSplashFragment(fragment: FtueAuthSplashFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthWaitForEmailFragment::class)
|
||||||
|
fun bindFtueAuthWaitForEmailFragment(fragment: FtueAuthWaitForEmailFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthWebFragment::class)
|
||||||
|
fun bindFtueAuthWebFragment(fragment: FtueAuthWebFragment): Fragment
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@FragmentKey(FtueAuthTermsFragment::class)
|
||||||
|
fun bindFtueAuthTermsFragment(fragment: FtueAuthTermsFragment): Fragment
|
||||||
|
|
||||||
@Binds
|
@Binds
|
||||||
@IntoMap
|
@IntoMap
|
||||||
@FragmentKey(UserListFragment::class)
|
@FragmentKey(UserListFragment::class)
|
||||||
|
@ -90,7 +90,7 @@ class FtueAuthResetPasswordFragment @Inject constructor() : AbstractFtueAuthFrag
|
|||||||
.setPositiveButton(R.string.login_reset_password_warning_submit) { _, _ ->
|
.setPositiveButton(R.string.login_reset_password_warning_submit) { _, _ ->
|
||||||
doSubmit()
|
doSubmit()
|
||||||
}
|
}
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.action_cancel, null)
|
||||||
.show()
|
.show()
|
||||||
} else {
|
} else {
|
||||||
doSubmit()
|
doSubmit()
|
||||||
|
@ -81,7 +81,7 @@ class FtueAuthSplashFragment @Inject constructor(
|
|||||||
.setPositiveButton(R.string.login_error_homeserver_from_url_not_found_enter_manual) { _, _ ->
|
.setPositiveButton(R.string.login_error_homeserver_from_url_not_found_enter_manual) { _, _ ->
|
||||||
loginViewModel.handle(LoginAction.OnGetStarted(resetLoginConfig = true))
|
loginViewModel.handle(LoginAction.OnGetStarted(resetLoginConfig = true))
|
||||||
}
|
}
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.action_cancel, null)
|
||||||
.show()
|
.show()
|
||||||
} else {
|
} else {
|
||||||
super.onError(throwable)
|
super.onError(throwable)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user