Renamed FlickerCanvas to FlickerCodeStepsCalculator

This commit is contained in:
dankito 2020-08-13 14:33:02 +02:00
parent cbbdf4bc73
commit 8b6b12a755
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
package net.dankito.banking.fints.tan package net.dankito.banking.fints.tan
open class FlickerCanvas(var code: String) { open class FlickerCodeStepsCalculator(var code: String) {
var halfbyteid = 0 var halfbyteid = 0
var clock = Bit.High var clock = Bit.High

View File

@ -3,9 +3,8 @@ package net.dankito.banking.ui.util
import kotlinx.coroutines.* import kotlinx.coroutines.*
import net.dankito.banking.ui.model.tan.FlickerCode import net.dankito.banking.ui.model.tan.FlickerCode
import net.dankito.banking.fints.tan.Bit 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 net.dankito.utils.multiplatform.log.LoggerFactory
import kotlin.jvm.JvmOverloads
import kotlin.jvm.Volatile import kotlin.jvm.Volatile
@ -40,7 +39,7 @@ open class FlickerCodeAnimator {
currentFrequency = frequency currentFrequency = frequency
animationJob = GlobalScope.launch(Dispatchers.Default) { animationJob = GlobalScope.launch(Dispatchers.Default) {
val steps = FlickerCanvas(flickerCode.parsedDataSet).steps val steps = FlickerCodeStepsCalculator(flickerCode.parsedDataSet).steps
calculateAnimation(steps, showStep) calculateAnimation(steps, showStep)
} }