mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
force a longer pause at quick filter toggling
This commit is contained in:
parent
6d5850a2dd
commit
3a50bf6237
@ -70,7 +70,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:2327fff588'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:becd38a3b7'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||||
|
@ -11,7 +11,6 @@ import com.simplemobiletools.commons.extensions.adjustAlpha
|
|||||||
import com.simplemobiletools.commons.extensions.getProperTextColor
|
import com.simplemobiletools.commons.extensions.getProperTextColor
|
||||||
import com.simplemobiletools.commons.helpers.LOWER_ALPHA
|
import com.simplemobiletools.commons.helpers.LOWER_ALPHA
|
||||||
import kotlinx.android.synthetic.main.quick_filter_event_type_view.view.*
|
import kotlinx.android.synthetic.main.quick_filter_event_type_view.view.*
|
||||||
import java.util.*
|
|
||||||
|
|
||||||
class QuickFilterEventTypeAdapter(
|
class QuickFilterEventTypeAdapter(
|
||||||
val activity: SimpleActivity,
|
val activity: SimpleActivity,
|
||||||
@ -83,7 +82,7 @@ class QuickFilterEventTypeAdapter(
|
|||||||
|
|
||||||
// avoid too quick clicks, could cause glitches
|
// avoid too quick clicks, could cause glitches
|
||||||
quick_filter_event_type.setOnClickListener {
|
quick_filter_event_type.setOnClickListener {
|
||||||
if (System.currentTimeMillis() - lastClickTS > 200) {
|
if (System.currentTimeMillis() - lastClickTS > 300) {
|
||||||
lastClickTS = System.currentTimeMillis()
|
lastClickTS = System.currentTimeMillis()
|
||||||
viewClicked(!isSelected, eventType)
|
viewClicked(!isSelected, eventType)
|
||||||
callback()
|
callback()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user