diff --git a/BankingUiCommon/src/main/java/net/dankito/banking/ui/IRouter.kt b/BankingUiCommon/src/main/java/net/dankito/banking/ui/IRouter.kt index 2606b694..4b8a0a83 100644 --- a/BankingUiCommon/src/main/java/net/dankito/banking/ui/IRouter.kt +++ b/BankingUiCommon/src/main/java/net/dankito/banking/ui/IRouter.kt @@ -10,8 +10,8 @@ import net.dankito.banking.ui.presenter.MainWindowPresenter interface IRouter { - fun getTanFromUserOffUiThread(account: Account, tanChallenge: TanChallenge, presenter: MainWindowPresenter): EnterTanResult + fun getTanFromUserFromNonUiThread(account: Account, tanChallenge: TanChallenge, presenter: MainWindowPresenter): EnterTanResult - fun getAtcFromUserOffUiThread(tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult + fun getAtcFromUserFromNonUiThread(tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult } \ No newline at end of file diff --git a/BankingUiCommon/src/main/java/net/dankito/banking/ui/presenter/MainWindowPresenter.kt b/BankingUiCommon/src/main/java/net/dankito/banking/ui/presenter/MainWindowPresenter.kt index 2ab364f3..757faf8b 100644 --- a/BankingUiCommon/src/main/java/net/dankito/banking/ui/presenter/MainWindowPresenter.kt +++ b/BankingUiCommon/src/main/java/net/dankito/banking/ui/presenter/MainWindowPresenter.kt @@ -52,11 +52,11 @@ open class MainWindowPresenter( protected val callback: BankingClientCallback = object : BankingClientCallback { override fun enterTan(account: Account, tanChallenge: TanChallenge): EnterTanResult { - return router.getTanFromUserOffUiThread(account, tanChallenge, this@MainWindowPresenter) + return router.getTanFromUserFromNonUiThread(account, tanChallenge, this@MainWindowPresenter) } override fun enterTanGeneratorAtc(tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult { - return router.getAtcFromUserOffUiThread(tanMedium) + return router.getAtcFromUserFromNonUiThread(tanMedium) } } diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/RouterAndroid.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/RouterAndroid.kt index 5c61f212..3c4b8f4a 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/RouterAndroid.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/RouterAndroid.kt @@ -16,7 +16,7 @@ import java.util.concurrent.atomic.AtomicReference open class RouterAndroid(protected val activity: AppCompatActivity) : IRouter { - override fun getTanFromUserOffUiThread(account: Account, tanChallenge: TanChallenge, presenter: MainWindowPresenter): EnterTanResult { + override fun getTanFromUserFromNonUiThread(account: Account, tanChallenge: TanChallenge, presenter: MainWindowPresenter): EnterTanResult { val enteredTan = AtomicReference(null) val tanEnteredLatch = CountDownLatch(1) @@ -32,7 +32,7 @@ open class RouterAndroid(protected val activity: AppCompatActivity) : IRouter { return enteredTan.get() } - override fun getAtcFromUserOffUiThread(tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult { + override fun getAtcFromUserFromNonUiThread(tanMedium: TanGeneratorTanMedium): EnterTanGeneratorAtcResult { val result = AtomicReference(null) val tanEnteredLatch = CountDownLatch(1)