Always update the filter display, even when the list is empty (#3880)

Fixes #3839, https://github.com/tuskyapp/Tusky/issues/3525
This commit is contained in:
Konrad Pozniak 2023-07-27 13:44:28 +02:00 committed by GitHub
parent 500271d4b3
commit 97713b06da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -72,6 +72,7 @@ class FiltersActivity : BaseActivity(), FiltersListener {
binding.messageView.show()
}
FiltersViewModel.LoadingState.LOADED -> {
binding.filtersList.adapter = FiltersAdapter(this@FiltersActivity, state.filters)
if (state.filters.isEmpty()) {
binding.messageView.setup(
R.drawable.elephant_friend_empty,
@ -81,7 +82,6 @@ class FiltersActivity : BaseActivity(), FiltersListener {
binding.messageView.show()
} else {
binding.messageView.hide()
binding.filtersList.adapter = FiltersAdapter(this@FiltersActivity, state.filters)
}
}
}