From 087e5961718fb6f366f285983f4bfe64924f4afb Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 6 Aug 2020 16:31:00 +0200 Subject: [PATCH] Not showing identifier in braces anymore, is in almost all cases a useless information and just wastes space. Using identifier only as fallback now. --- .../kotlin/net/dankito/banking/ui/model/BankAccount.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/BankAccount.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/BankAccount.kt index 0140a826..881a8f5f 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/BankAccount.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/BankAccount.kt @@ -42,14 +42,7 @@ open class BankAccount @JvmOverloads constructor( open val displayName: String get() { - val productName = productName ?: subAccountNumber - - if (productName != null) { - return productName + " ($identifier)" - } - - - return identifier + return productName ?: subAccountNumber ?: identifier }