#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
import kotlin.random.Random | |
import kotlin.reflect.KClass | |
import kotlin.reflect.KFunction | |
import kotlin.reflect.KType | |
/** | |
* You can find the method explanation here on this post: | |
* https://zaqueusantos.medium.com/an-easy-way-to-create-fixture-or-dummy-classes-for-your-android-tests-with-kotlin-9d6c619237d4 | |
*/ |
fun View.handleSingleClick(debounceTime: Long = 500L, callback: () -> Unit) { | |
if (this.isClickable) { | |
this.isClickable = false | |
callback() | |
this.postDelayed( | |
{ | |
this.isClickable = true | |
}, | |
debounceTime | |
) |