From 5a06305171292c9e718538376dc2f8fc679d00a4 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 30 Aug 2020 16:45:37 +0200 Subject: [PATCH] Removed unnecessary animateFlickerCode() overload. It just set currentFrequency to DefaultFrequency, therefore overwriting a previously set frequency --- .../net/dankito/banking/ui/util/FlickerCodeAnimator.kt | 6 ------ 1 file changed, 6 deletions(-) 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)