<loop for change button value when clicked> i'm tr...
# stackoverflow
u
loop for change button value when clicked i'm trying to use a loop to change the value of my button, but when i run the app and click in the button, he just changes one time and the button stucks, like it's not reseting the button when gets to the last value. There are only 3 options in the button (Normal, Repeating, Shuffle) It may be a completely dumb question, but i really don't know what i can do. var repMode = 0 binding.btnRepMode.setOnClickListener { do{ repMode++ }while(repMode...