Renamed OffUiThread to FromNonUiThread
This commit is contained in:
parent
342c8b78e8
commit
fe6a2f17d5
|
@ -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
|
||||
|
||||
}
|
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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<EnterTanResult>(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<EnterTanGeneratorAtcResult>(null)
|
||||
val tanEnteredLatch = CountDownLatch(1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue