[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-android] branch master updated: [wallet] don't crash when t
From: |
gnunet |
Subject: |
[taler-taler-android] branch master updated: [wallet] don't crash when transaction list has no bindingAdapterPosition |
Date: |
Tue, 26 Sep 2023 18:30:34 +0200 |
This is an automated email from the git hooks/post-receive script.
torsten-grote pushed a commit to branch master
in repository taler-android.
The following commit(s) were added to refs/heads/master by this push:
new d7196a0 [wallet] don't crash when transaction list has no
bindingAdapterPosition
d7196a0 is described below
commit d7196a07eaaf5ca52906a8c987144c7b9814dfef
Author: Torsten Grote <t@grobox.de>
AuthorDate: Tue Sep 19 18:08:22 2023 +0200
[wallet] don't crash when transaction list has no bindingAdapterPosition
---
wallet/src/main/java/net/taler/wallet/transactions/TransactionAdapter.kt | 1 +
1 file changed, 1 insertion(+)
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 945d937..18480e1 100644
--- a/wallet/src/main/java/net/taler/wallet/transactions/TransactionAdapter.kt
+++ b/wallet/src/main/java/net/taler/wallet/transactions/TransactionAdapter.kt
@@ -203,6 +203,7 @@ internal class TransactionLookup(
list.findChildViewUnder(e.x, e.y)?.let { view ->
val holder = list.getChildViewHolder(view)
val position = holder.bindingAdapterPosition
+ if (position < 0) return null
return object : ItemDetails<String>() {
override fun getPosition(): Int = position
override fun getSelectionKey(): String =
adapter.keyProvider.getKey(position)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-android] branch master updated: [wallet] don't crash when transaction list has no bindingAdapterPosition,
gnunet <=