From 8b6b12a7559f93a654c4d596f7c42165bc778c45 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 13 Aug 2020 14:33:02 +0200 Subject: [PATCH] Renamed FlickerCanvas to FlickerCodeStepsCalculator --- .../tan/{FlickerCanvas.kt => FlickerCodeStepsCalculator.kt} | 2 +- .../net/dankito/banking/ui/util/FlickerCodeAnimator.kt | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) rename fints4k/src/commonMain/kotlin/net/dankito/banking/fints/tan/{FlickerCanvas.kt => FlickerCodeStepsCalculator.kt} (97%) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/tan/FlickerCanvas.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/tan/FlickerCodeStepsCalculator.kt similarity index 97% rename from fints4k/src/commonMain/kotlin/net/dankito/banking/fints/tan/FlickerCanvas.kt rename to fints4k/src/commonMain/kotlin/net/dankito/banking/fints/tan/FlickerCodeStepsCalculator.kt index 51ba7e58..0aad576f 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/tan/FlickerCanvas.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/tan/FlickerCodeStepsCalculator.kt @@ -1,7 +1,7 @@ package net.dankito.banking.fints.tan -open class FlickerCanvas(var code: String) { +open class FlickerCodeStepsCalculator(var code: String) { var halfbyteid = 0 var clock = Bit.High diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/util/FlickerCodeAnimator.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/util/FlickerCodeAnimator.kt index 4375fe3f..987d7c81 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/util/FlickerCodeAnimator.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/util/FlickerCodeAnimator.kt @@ -3,9 +3,8 @@ package net.dankito.banking.ui.util import kotlinx.coroutines.* import net.dankito.banking.ui.model.tan.FlickerCode import net.dankito.banking.fints.tan.Bit -import net.dankito.banking.fints.tan.FlickerCanvas +import net.dankito.banking.fints.tan.FlickerCodeStepsCalculator import net.dankito.utils.multiplatform.log.LoggerFactory -import kotlin.jvm.JvmOverloads import kotlin.jvm.Volatile @@ -40,7 +39,7 @@ open class FlickerCodeAnimator { currentFrequency = frequency animationJob = GlobalScope.launch(Dispatchers.Default) { - val steps = FlickerCanvas(flickerCode.parsedDataSet).steps + val steps = FlickerCodeStepsCalculator(flickerCode.parsedDataSet).steps calculateAnimation(steps, showStep) }