Renamed FlickerCanvas to FlickerCodeStepsCalculator
This commit is contained in:
parent
cbbdf4bc73
commit
8b6b12a755
|
@ -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
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue