fixed space switching dialog measured with wrong height sometimes (#6928)

This commit is contained in:
Nikita Fedrunov 2022-08-25 10:49:44 +02:00 committed by GitHub
parent 2b5920e451
commit da70d520bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

1
changelog.d/6750.wip Normal file
View file

@ -0,0 +1 @@
[App Layout] fixed space switching dialog measured with wrong height sometimes

View file

@ -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
} }