From d284953c7f540ea15a99b8ae3d99c2bfb6d1ee6b Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Fri, 24 Apr 2020 11:57:12 -0300 Subject: [wallet] Fix selection of refresh events (that are supposed to go away) --- .../main/java/net/taler/wallet/transactions/TransactionAdapter.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wallet/src/main/java/net/taler/wallet/transactions/TransactionAdapter.kt b/wallet/src/main/java/net/taler/wallet/transactions/TransactionAdapter.kt index a72b8a8..440d07f 100644 --- a/wallet/src/main/java/net/taler/wallet/transactions/TransactionAdapter.kt +++ b/wallet/src/main/java/net/taler/wallet/transactions/TransactionAdapter.kt @@ -81,15 +81,15 @@ internal class TransactionAdapter( private val time: TextView = v.findViewById(R.id.time) private val amount: TextView = v.findViewById(R.id.amount) - private val selectableBackground = v.background + private val selectableForeground = v.foreground private val amountColor = amount.currentTextColor open fun bind(transaction: Transaction, selected: Boolean) { if (devMode || transaction.detailPageLayout != 0) { - v.background = selectableBackground + v.foreground = selectableForeground v.setOnClickListener { listener.onTransactionClicked(transaction) } } else { - v.background = null + v.foreground = null v.setOnClickListener(null) } v.isActivated = selected -- cgit v1.2.3