From 907757c8936d08c40e5146175f953de77f9fb03d Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Thu, 28 May 2026 19:06:59 +0500 Subject: [PATCH] remove unsupported accounts from paymv qr generation --- app/src/main/java/sh/sar/basedbank/ui/home/PayMvQrFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/sh/sar/basedbank/ui/home/PayMvQrFragment.kt b/app/src/main/java/sh/sar/basedbank/ui/home/PayMvQrFragment.kt index ed58c4c..7c768d9 100644 --- a/app/src/main/java/sh/sar/basedbank/ui/home/PayMvQrFragment.kt +++ b/app/src/main/java/sh/sar/basedbank/ui/home/PayMvQrFragment.kt @@ -110,7 +110,9 @@ class PayMvQrFragment : Fragment() { private fun setupDropdown() { viewModel.accounts.observe(viewLifecycleOwner) { accounts -> val eligible = accounts.filter { - it.profileType != "BML_PREPAID" && it.profileType != "BML_CREDIT" && it.profileType != "BML_DEBIT" && it.profileType != "BML_LOAN" + it.profileType != "BML_PREPAID" && it.profileType != "BML_CREDIT" && it.profileType != "BML_DEBIT" && it.profileType != "BML_LOAN" && + it.bank != "MIB" && // TODO: MIB does not support PayMV QR + !(it.bank == "BML" && it.currencyName.contains("USD", ignoreCase = true)) // TODO: BML USD not supported by MMA } val adapter = QrAccountAdapter(requireContext(), eligible) binding.actvAccount.setAdapter(adapter)