Is there a reason that .setEnabled() only seems to work once? I wish to toggle it on and off multiple times during an activity lifecycle depending on the content. i’ve tried wrapping it in switch statements.
GAME_STATE_INPLAY = true;
if (GAME_STATE_INPLAY = true) {
explainButton.setEnabled(false);
}
....
if (c.getString(7).toString().length() > 0) {
explainButton.setEnabled(true);
}
try to get the btn by id again: