Show text when no recipes found

This commit is contained in:
Kirill Kamakin
2022-11-21 20:17:16 +01:00
parent 7f5d0be165
commit 7fa96affe8
5 changed files with 28 additions and 5 deletions

View File

@@ -105,6 +105,7 @@ class RecipesListFragment : Fragment(R.layout.fragment_recipes_list) {
collectWhenViewResumed(recipesAdapter.onPagesUpdatedFlow) {
logger.v { "setupRecipeAdapter: pages updated" }
binding.refresher.isRefreshing = false
binding.emptyListText.isVisible = recipesAdapter.itemCount == 0
}
collectWhenViewResumed(recipesAdapter.appendPaginationEnd()) {