so I have this setOnClickListener in my MainActivity.kt and I was wondering how I could upgrade it to set an integer in my code to 1 when the button is pressed two consecutive times
this is my setOnClickListener right now:
reset.setOnClickListener{
sum = 1
Toast.makeText(applicationContext,"enter the number again",Toast.LENGTH_LONG).show()
stevec.getText().clear()
sumText.setText("" + sum)
}