So I have this code :
back --; //when it starts doing that back's value is 5
if (back == 0) {
back_button.setClickable(false);
}
if (back != 0) {
back_button.setClickable(true);
}
My back_button
never sets itself to Clickable(true)
after it set to Clickable(false)
, even when back wasn't equal to 0 caused by another button(back++;)
.
Why isn't my back_button
onClick
realizing that?