Skip to content

Commit

Permalink
undo button
Browse files Browse the repository at this point in the history
  • Loading branch information
oers committed Nov 19, 2024
1 parent cfafd2e commit c1dc8aa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions project/src/main/java/de/earthlingz/oerszebra/DroidZebra.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ void redo() {
}

void undo() {
menu.findItem(R.id.menu_take_back).setEnabled(false);
engine.undoMove(gameState);
}

Expand Down Expand Up @@ -715,7 +714,6 @@ public void onError(String error) {

@Override
public void onBoard(GameState gameState) {
menu.findItem(R.id.menu_take_back).setEnabled(true);
int sideToMove = gameState.getSideToMove();

//triggers animations
Expand Down

0 comments on commit c1dc8aa

Please sign in to comment.