SingleClickListener (DebouncedClickListener) for android app
In almost all my projects it was required to prevent double click on buttons: to avoid duplicate payments to prevent double click on navigation elements etc class OnSingleClickListener(private val delay: Long, private val block: () -> Unit) : View.OnClickListener {

    private var lastClickTime = 0L…
SingleClickListener (DebouncedClickListener) for android app In almost all my projects it was required to prevent double click on buttons: to avoid duplicate payments to prevent double click on navigation elements etc class OnSingleClickListener(private val delay: Long, private val block: () -> Unit) : View.OnClickListener {

    private var lastClickTime = 0L… android
SingleClickListener DebouncedClickListener android app almost project required prevent double click button avoid duplicate payment prevent double click navigation element etc class OnSingleClickListenerprivate val delay Long private val block Unit ViewOnClickListener private var lastClickTime 0L… android