implementation must now be passed to MainWindowPresenter

This commit is contained in:
dankl 2019-11-03 23:59:45 +01:00 committed by dankito
parent 579f542bc7
commit cfed332f02
2 changed files with 4 additions and 5 deletions

View File

@ -22,7 +22,7 @@ class MainActivity : AppCompatActivity() {
// private lateinit var appBarConfiguration: AppBarConfiguration // private lateinit var appBarConfiguration: AppBarConfiguration
val presenter = MainWindowPresenter(callback = object : FinTsClientCallback { val presenter = MainWindowPresenter(Base64ServiceAndroid(), object : FinTsClientCallback {
override fun askUserForTanProcedure(supportedTanProcedures: List<TanProcedure>): TanProcedure? { override fun askUserForTanProcedure(supportedTanProcedures: List<TanProcedure>): TanProcedure? {
// TODO: show dialog and ask user // TODO: show dialog and ask user

View File

@ -1,6 +1,5 @@
package net.dankito.banking.fints4java.android.ui 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.Account
import net.dankito.banking.ui.model.AccountTransaction import net.dankito.banking.ui.model.AccountTransaction
import net.dankito.banking.ui.model.BankAccount import net.dankito.banking.ui.model.BankAccount
@ -23,9 +22,9 @@ import java.util.*
import kotlin.collections.ArrayList import kotlin.collections.ArrayList
open class MainWindowPresenter(protected val callback: FinTsClientCallback) { open class MainWindowPresenter(protected val base64Service: IBase64Service,
protected val callback: FinTsClientCallback
protected val base64Service: IBase64Service = Base64ServiceAndroid() ) {
protected val bankFinder: BankFinder = BankFinder() protected val bankFinder: BankFinder = BankFinder()