public void saveUndo(GridCell cell, boolean batch) { UndoState undoState = new UndoState(cell.mCellNumber, cell.getUserValue(), cell.mPossibles, batch); undoList.add(undoState); this.actions[2].setVisibility(View.VISIBLE); }