From 12304684fc398e1020bdfaf4571a3e00b261dd95 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 16 Oct 2024 15:19:06 +0200 Subject: [PATCH] Ranking non-ChipTan methods before ChipTan methods (but should make no difference as there shouldn't be any bank supporting both) --- .../net/codinux/banking/client/model/tan/TanMethodType.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethodType.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethodType.kt index f1b7ffae..2d9ddeec 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethodType.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethodType.kt @@ -37,7 +37,10 @@ enum class TanMethodType { val NonVisualWithoutChipTanManual = NonVisual.toMutableList().apply { remove(TanMethodType.ChipTanManual) }.toList() - val ImageBased = listOf(TanMethodType.QrCode, TanMethodType.ChipTanQrCode, TanMethodType.photoTan, TanMethodType.ChipTanPhotoTanMatrixCode) + val ImageBased = listOf( + TanMethodType.QrCode, TanMethodType.photoTan, // non ChipTan + TanMethodType.ChipTanQrCode, TanMethodType.ChipTanPhotoTanMatrixCode // ChipTan; QrCode (e.g. used by Sparkassen) is faster than MatrixCode (e.g. used by Volksbanken) + ) val NonVisualOrImageBased = buildList { addAll(NonVisualWithoutChipTanManual)