Is it possible to extend the delay time within a postDelayed?
I have a button that starts a postDelayed handler. I want the time of de handler to be extenden when I press that button for the second time before the handler is ended. Does anyone know how to do this?
This is the code I have right now
Handler().postDelayed({
checkBox.setBackgroundResource(R.drawable.black_button)
}, 3000)