From 97713b06da91b5b1734a09c6ebfdf3960545b7aa Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Thu, 27 Jul 2023 13:44:28 +0200 Subject: [PATCH] Always update the filter display, even when the list is empty (#3880) Fixes #3839, https://github.com/tuskyapp/Tusky/issues/3525 --- .../keylesspalace/tusky/components/filters/FiltersActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/filters/FiltersActivity.kt b/app/src/main/java/com/keylesspalace/tusky/components/filters/FiltersActivity.kt index 9230fdae2..c6d3328f0 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/filters/FiltersActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/filters/FiltersActivity.kt @@ -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) } } }