From cfed332f021aeca1a740a8ca7a1837fc4f80328a Mon Sep 17 00:00:00 2001 From: dankl Date: Sun, 3 Nov 2019 23:59:45 +0100 Subject: [PATCH] implementation must now be passed to MainWindowPresenter --- .../net/dankito/banking/fints4java/android/MainActivity.kt | 2 +- .../banking/fints4java/android/ui/MainWindowPresenter.kt | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/MainActivity.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/MainActivity.kt index 1d489cd0..db14eece 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/MainActivity.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/MainActivity.kt @@ -22,7 +22,7 @@ class MainActivity : AppCompatActivity() { // private lateinit var appBarConfiguration: AppBarConfiguration - val presenter = MainWindowPresenter(callback = object : FinTsClientCallback { + val presenter = MainWindowPresenter(Base64ServiceAndroid(), object : FinTsClientCallback { override fun askUserForTanProcedure(supportedTanProcedures: List): TanProcedure? { // TODO: show dialog and ask user diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/MainWindowPresenter.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/MainWindowPresenter.kt index c723e8c0..a80057cb 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/MainWindowPresenter.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/MainWindowPresenter.kt @@ -1,6 +1,5 @@ package net.dankito.banking.fints4java.android.ui -import net.dankito.banking.fints4java.android.Base64ServiceAndroid import net.dankito.banking.ui.model.Account import net.dankito.banking.ui.model.AccountTransaction import net.dankito.banking.ui.model.BankAccount @@ -23,9 +22,9 @@ import java.util.* import kotlin.collections.ArrayList -open class MainWindowPresenter(protected val callback: FinTsClientCallback) { - - protected val base64Service: IBase64Service = Base64ServiceAndroid() +open class MainWindowPresenter(protected val base64Service: IBase64Service, + protected val callback: FinTsClientCallback +) { protected val bankFinder: BankFinder = BankFinder()