aboutsummaryrefslogtreecommitdiff
path: root/adapter
diff options
context:
space:
mode:
Diffstat (limited to 'adapter')
-rw-r--r--adapter/src/main/kotlin/ca/allanwang/kau/adapters/RepeatedClickListener.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/adapter/src/main/kotlin/ca/allanwang/kau/adapters/RepeatedClickListener.kt b/adapter/src/main/kotlin/ca/allanwang/kau/adapters/RepeatedClickListener.kt
index d864a55..5925454 100644
--- a/adapter/src/main/kotlin/ca/allanwang/kau/adapters/RepeatedClickListener.kt
+++ b/adapter/src/main/kotlin/ca/allanwang/kau/adapters/RepeatedClickListener.kt
@@ -40,11 +40,10 @@ private class RepeatedClickListener<Item : IItem<*, *>>(
if (time - now < duration)
chain++
else
- chain = 0
+ chain = 1
time = now
if (chain == count) {
chain = 0
- time = -1
event.onClick(v, adapter, item, position)
return true
}