mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Reduce toggle delay
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user