force a longer pause at quick filter toggling

This commit is contained in:
tibbi 2022-07-27 15:02:34 +02:00
parent 6d5850a2dd
commit 3a50bf6237
2 changed files with 2 additions and 3 deletions

View File

@ -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'

View File

@ -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()