mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 20:09:27 +03:00
Fix missing branch in when
This commit is contained in:
parent
99123bf0cc
commit
a41bec9476
1 changed files with 7 additions and 4 deletions
|
@ -56,18 +56,21 @@ class SpaceCreationActivity : SimpleFragmentActivity(), CreateSpaceViewModel.Fac
|
|||
super.onCreate(savedInstanceState)
|
||||
if (isFirstCreation()) {
|
||||
when (withState(viewModel) { it.step }) {
|
||||
CreateSpaceState.Step.ChooseType -> {
|
||||
CreateSpaceState.Step.ChooseType -> {
|
||||
navigateToFragment(ChooseSpaceTypeFragment::class.java)
|
||||
}
|
||||
CreateSpaceState.Step.SetDetails -> {
|
||||
CreateSpaceState.Step.SetDetails -> {
|
||||
navigateToFragment(ChooseSpaceTypeFragment::class.java)
|
||||
}
|
||||
CreateSpaceState.Step.AddRooms -> {
|
||||
CreateSpaceState.Step.AddRooms -> {
|
||||
navigateToFragment(CreateSpaceDefaultRoomsFragment::class.java)
|
||||
}
|
||||
CreateSpaceState.Step.ChoosePrivateType -> {
|
||||
CreateSpaceState.Step.ChoosePrivateType -> {
|
||||
navigateToFragment(ChoosePrivateSpaceTypeFragment::class.java)
|
||||
}
|
||||
CreateSpaceState.Step.AddEmailsOrInvites -> {
|
||||
navigateToFragment(CreateSpaceAdd3pidInvitesFragment::class.java)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue