taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

commit d284953c7f540ea15a99b8ae3d99c2bfb6d1ee6b
parent d576e64ba5fcefd3f8bec0379d776662fad21678
Author: Torsten Grote <t@grobox.de>
Date:   Fri, 24 Apr 2020 11:57:12 -0300

[wallet] Fix selection of refresh events (that are supposed to go away)

Diffstat:
Mwallet/src/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 @@ -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