From c9884a380e1e7e35e2fc46068b584e70163c7700 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 14 Nov 2021 21:51:41 +0100 Subject: [PATCH] Fixed that initDialogWithStrongCustomerAuthentication() JobContext.startNewDialog() hasn't been called causing message number to be 2 instead of 1 (and institution therefore to abort this dialog) --- .../kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt index 8adb74fc..5936ecb4 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt @@ -147,8 +147,6 @@ open class FinTsJobExecutor( getUsersTanMethod(context) { didSelectTanMethod -> if (didSelectTanMethod) { - context.startNewDialog() - initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context) { initDialogResponse -> closeDialog(context) @@ -164,9 +162,6 @@ open class FinTsJobExecutor( open fun getAccounts(context: JobContext, callback: (BankResponse) -> Unit) { - - context.startNewDialog(false) - initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context) { response -> closeDialog(context) @@ -579,6 +574,8 @@ open class FinTsJobExecutor( protected open fun initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context: JobContext, callback: (BankResponse) -> Unit) { + context.startNewDialog(false) // don't know if it's ok for all invocations of this method to set closeDialog to false (was actually only set in getAccounts()) + val message = messageBuilder.createInitDialogMessage(context) getAndHandleResponseForMessage(context, message, callback)