implementation must now be passed to MainWindowPresenter
This commit is contained in:
parent
579f542bc7
commit
cfed332f02
|
@ -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>): TanProcedure? {
|
||||
// TODO: show dialog and ask user
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue