Show no accounts found text when there are no accounts in cache
Auto Tag on Version Change / check-version (push) Successful in 5s

This commit is contained in:
2026-05-27 23:42:05 +05:00
parent a37454de00
commit 0560c53ae3
3 changed files with 30 additions and 8 deletions
@@ -73,7 +73,10 @@ class AccountsFragment : Fragment() {
insets
}
viewModel.accounts.observe(viewLifecycleOwner) { adapter.updateAccounts(it) }
viewModel.accounts.observe(viewLifecycleOwner) {
adapter.updateAccounts(it)
binding.emptyView.visibility = if (it.isEmpty()) View.VISIBLE else View.GONE
}
viewModel.hideAmounts.observe(viewLifecycleOwner) { adapter.setHideAmounts(it) }
binding.swipeRefresh.setOnRefreshListener {