Improved transactions filtering algorithm in TransactionsFragment, to include the memo when searching with a text query.
This commit is contained in:
parent
1528960bed
commit
6df56b068b
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class TransactionsViewModel(application: Application) : AndroidViewModel(applica
|
||||||
continue
|
continue
|
||||||
|
|
||||||
// Filter by search query
|
// 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)) {
|
if (text.contains(filterOptions.query, ignoreCase = true)) {
|
||||||
filteredTransactions.add(transaction)
|
filteredTransactions.add(transaction)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue