mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 22:18:46 +03:00
fixed space switching dialog measured with wrong height sometimes (#6928)
This commit is contained in:
parent
2b5920e451
commit
da70d520bc
2 changed files with 5 additions and 1 deletions
1
changelog.d/6750.wip
Normal file
1
changelog.d/6750.wip
Normal file
|
@ -0,0 +1 @@
|
||||||
|
[App Layout] fixed space switching dialog measured with wrong height sometimes
|
|
@ -193,7 +193,10 @@ class SpaceListFragment :
|
||||||
override fun invalidate() = withState(viewModel) { state ->
|
override fun invalidate() = withState(viewModel) { state ->
|
||||||
when (state.asyncSpaces) {
|
when (state.asyncSpaces) {
|
||||||
Uninitialized,
|
Uninitialized,
|
||||||
is Loading -> views.stateView.state = StateView.State.Loading
|
is Loading -> {
|
||||||
|
views.stateView.state = StateView.State.Loading
|
||||||
|
return@withState
|
||||||
|
}
|
||||||
is Success -> views.stateView.state = StateView.State.Content
|
is Success -> views.stateView.state = StateView.State.Content
|
||||||
else -> Unit
|
else -> Unit
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue