Reduce toggle delay

pull/1336/head
Alinson S. Xavier 4 years ago
parent 2f13aba22c
commit ca4618579e
No known key found for this signature in database
GPG Key ID: DCA0DAD4D2F58624

@ -306,7 +306,7 @@ class HabitCardView(
} }
companion object { companion object {
const val TOGGLE_DELAY_MILLIS = 2000L const val TOGGLE_DELAY_MILLIS = 1000L
fun (() -> Unit).delay(delayInMillis: Long) { fun (() -> Unit).delay(delayInMillis: Long) {
Handler(Looper.getMainLooper()).postDelayed(this, delayInMillis) Handler(Looper.getMainLooper()).postDelayed(this, delayInMillis)

Loading…
Cancel
Save