From d7c8d19da705caf3207c2591b1a6ea13ceb74ba2 Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 25 Jan 2020 11:31:30 +0100 Subject: [PATCH] Fixed that decreaseFrequency() got lost during refactoring --- .../fints4java/android/ui/views/ChipTanFlickerCodeView.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/views/ChipTanFlickerCodeView.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/views/ChipTanFlickerCodeView.kt index 07109780..2878154f 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/views/ChipTanFlickerCodeView.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/views/ChipTanFlickerCodeView.kt @@ -146,6 +146,14 @@ open class ChipTanFlickerCodeView @JvmOverloads constructor( } + open fun decreaseFrequency() { + if (currentFrequency - FrequencyStepSize >= MinFrequency) { + currentFrequency -= FrequencyStepSize + + setFrequency(currentFrequency) + } + } + open fun increaseFrequency() { if (currentFrequency + FrequencyStepSize <= MaxFrequency) { currentFrequency += FrequencyStepSize