From 3c096d655fff6b7d05eb7b61b77c5a0d581b275a Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 21 Nov 2021 18:40:17 +0100 Subject: [PATCH] Fixed that previous dialog's chunkedResponseHandler hasn't been set on next dialog (is important when retrieving transactions and user chose to change TAN method or -media) --- .../kotlin/net/dankito/banking/fints/model/JobContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/JobContext.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/JobContext.kt index e9eeb495..7e9c4036 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/JobContext.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/JobContext.kt @@ -54,7 +54,7 @@ open class JobContext( open fun startNewDialog(closeDialog: Boolean = true, dialogId: String = DialogContext.InitialDialogId, versionOfSecurityProcedure: VersionDesSicherheitsverfahrens = VersionDesSicherheitsverfahrens.Version_2, - chunkedResponseHandler: ((BankResponse) -> Unit)? = null) : DialogContext { + chunkedResponseHandler: ((BankResponse) -> Unit)? = dialog.chunkedResponseHandler) : DialogContext { val newDialogContext = DialogContext(closeDialog, dialogId, chunkedResponseHandler)