diff --git a/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/AccountTransaction.kt b/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/AccountTransaction.kt index 02a2b232..25806690 100644 --- a/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/AccountTransaction.kt +++ b/BankingUiCommon/src/main/java/net/dankito/banking/ui/model/AccountTransaction.kt @@ -21,6 +21,10 @@ open class AccountTransaction( internal constructor() : this(0.toBigDecimal(),"", "", Date(), null, null, null, null, BankAccount()) + val showOtherPartyName: Boolean + get() = otherPartyName.isNullOrBlank() == false /* && type != "ENTGELTABSCHLUSS" && type != "AUSZAHLUNG" */ // TODO + + override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is AccountTransaction) return false diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/AccountTransactionAdapter.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/AccountTransactionAdapter.kt index 114af3ec..819b4c4c 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/AccountTransactionAdapter.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/adapter/AccountTransactionAdapter.kt @@ -38,6 +38,7 @@ open class AccountTransactionAdapter viewHolder.txtvwBookingText.text = item.bookingText ?: "" + viewHolder.txtvwOtherPartyName.visibility = if (item.showOtherPartyName) View.VISIBLE else View.GONE viewHolder.txtvwOtherPartyName.text = item.otherPartyName ?: "" viewHolder.txtvwUsage1.text = item.usage