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 b91a9eb6..2d6d0c99 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 @@ -28,14 +28,8 @@ open class FlickerCodeAnimator { open fun animateFlickerCode(flickerCode: FlickerCode, showStep: (Step) -> Unit) { - animateFlickerCode(flickerCode, DefaultFrequency, showStep) - } - - open fun animateFlickerCode(flickerCode: FlickerCode, frequency: Int, showStep: (Step) -> Unit) { stop() // stop may still running previous animation - currentFrequency = frequency - animationJob = GlobalScope.launch(Dispatchers.Default) { val steps = FlickerCodeStepsCalculator().calculateSteps(flickerCode.parsedDataSet)