diff --git a/app/src/main/java/org/mifos/mobile/ui/fragments/AccountsFragment.kt b/app/src/main/java/org/mifos/mobile/ui/fragments/AccountsFragment.kt index 1241c5ee2..229e53dda 100644 --- a/app/src/main/java/org/mifos/mobile/ui/fragments/AccountsFragment.kt +++ b/app/src/main/java/org/mifos/mobile/ui/fragments/AccountsFragment.kt @@ -391,9 +391,7 @@ class AccountsFragment : BaseFragment(), OnRefreshListener { )?.let { filteredSavings.addAll(it) } } } - if (filteredSavings.size == 0) { - showEmptyAccounts(getString(R.string.no_saving_account)) - } else { + if (filteredSavings.size != 0) { savingAccountsListAdapter?.setSavingAccountsList(filteredSavings) } } @@ -415,9 +413,7 @@ class AccountsFragment : BaseFragment(), OnRefreshListener { )?.let { filteredSavings.addAll(it) } } } - if (filteredSavings.size == 0) { - showEmptyAccounts(getString(R.string.no_loan_account)) - } else { + if (filteredSavings.size != 0) { loanAccountsListAdapter?.setLoanAccountsList(filteredSavings) } } @@ -439,9 +435,7 @@ class AccountsFragment : BaseFragment(), OnRefreshListener { )?.let { filteredSavings.addAll(it) } } } - if (filteredSavings.size == 0) { - showEmptyAccounts(getString(R.string.no_saving_account)) - } else { + if (filteredSavings.size != 0) { shareAccountsListAdapter?.setShareAccountsList(filteredSavings) } }