copying all of the login fragments into the ftue auth domain

This commit is contained in:
Adam Brown 2021-12-09 14:42:45 +00:00
parent 811613fa4d
commit 2647e061a2

View file

@ -63,11 +63,11 @@ abstract class AbstractFtueAuthFragment<VB : ViewBinding> : VectorBaseFragment<V
super.onViewCreated(view, savedInstanceState)
viewModel.observeViewEvents {
handleLoginViewEvents(it)
handleOnboardingViewEvents(it)
}
}
private fun handleLoginViewEvents(viewEvents: OnboardingViewEvents) {
private fun handleOnboardingViewEvents(viewEvents: OnboardingViewEvents) {
when (viewEvents) {
is OnboardingViewEvents.Failure -> showFailure(viewEvents.throwable)
else ->
@ -178,6 +178,6 @@ abstract class AbstractFtueAuthFragment<VB : ViewBinding> : VectorBaseFragment<V
// No op by default
}
// Reset any modification on the loginViewModel by the current fragment
// Reset any modification on the viewModel by the current fragment
abstract fun resetViewModel()
}