From 3a50bf623786bafc7fb866c4efd5ff33099100b6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 27 Jul 2022 15:02:34 +0200 Subject: [PATCH] force a longer pause at quick filter toggling --- app/build.gradle | 2 +- .../calendar/pro/adapters/QuickFilterEventTypeAdapter.kt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c09c213e2..2bc0c60f8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -70,7 +70,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:2327fff588' + implementation 'com.github.SimpleMobileTools:Simple-Commons:becd38a3b7' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/adapters/QuickFilterEventTypeAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/adapters/QuickFilterEventTypeAdapter.kt index e1629b5f8..be10b511b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/adapters/QuickFilterEventTypeAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/adapters/QuickFilterEventTypeAdapter.kt @@ -11,7 +11,6 @@ import com.simplemobiletools.commons.extensions.adjustAlpha import com.simplemobiletools.commons.extensions.getProperTextColor import com.simplemobiletools.commons.helpers.LOWER_ALPHA import kotlinx.android.synthetic.main.quick_filter_event_type_view.view.* -import java.util.* class QuickFilterEventTypeAdapter( val activity: SimpleActivity, @@ -83,7 +82,7 @@ class QuickFilterEventTypeAdapter( // avoid too quick clicks, could cause glitches quick_filter_event_type.setOnClickListener { - if (System.currentTimeMillis() - lastClickTS > 200) { + if (System.currentTimeMillis() - lastClickTS > 300) { lastClickTS = System.currentTimeMillis() viewClicked(!isSelected, eventType) callback()