mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
copying all of the login fragments into the ftue auth domain
This commit is contained in:
parent
811613fa4d
commit
2647e061a2
@ -63,11 +63,11 @@ abstract class AbstractFtueAuthFragment<VB : ViewBinding> : VectorBaseFragment<V
|
|||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
|
||||||
viewModel.observeViewEvents {
|
viewModel.observeViewEvents {
|
||||||
handleLoginViewEvents(it)
|
handleOnboardingViewEvents(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleLoginViewEvents(viewEvents: OnboardingViewEvents) {
|
private fun handleOnboardingViewEvents(viewEvents: OnboardingViewEvents) {
|
||||||
when (viewEvents) {
|
when (viewEvents) {
|
||||||
is OnboardingViewEvents.Failure -> showFailure(viewEvents.throwable)
|
is OnboardingViewEvents.Failure -> showFailure(viewEvents.throwable)
|
||||||
else ->
|
else ->
|
||||||
@ -178,6 +178,6 @@ abstract class AbstractFtueAuthFragment<VB : ViewBinding> : VectorBaseFragment<V
|
|||||||
// No op by default
|
// 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()
|
abstract fun resetViewModel()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user