From 6df56b068bc8bf17351a9ce2abfdad9a768d3b5d Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Mon, 6 May 2019 13:28:28 -0500 Subject: [PATCH] Improved transactions filtering algorithm in TransactionsFragment, to include the memo when searching with a text query. --- .../bitsybitshareswallet/viewmodels/TransactionsViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/viewmodels/TransactionsViewModel.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/viewmodels/TransactionsViewModel.kt index 64f4c76..68ad7bc 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/viewmodels/TransactionsViewModel.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/viewmodels/TransactionsViewModel.kt @@ -110,7 +110,7 @@ class TransactionsViewModel(application: Application) : AndroidViewModel(applica continue // Filter by search query - val text = (transaction.from ?: "").toLowerCase() + (transaction.to ?: "").toLowerCase() + val text = "${transaction.from ?: ""} ${transaction.to ?: ""} ${transaction.memo}" if (text.contains(filterOptions.query, ignoreCase = true)) { filteredTransactions.add(transaction) }