Renamed OffUiThread to FromNonUiThread

This commit is contained in:
dankl 2020-01-08 18:23:24 +01:00 committed by dankito
parent 342c8b78e8
commit fe6a2f17d5
3 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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)
}
}

View File

@ -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)