From 6ad5832538d0bac4d47a2a111773f10fd4ee73e8 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Tue, 17 Nov 2015 15:47:24 +0100 Subject: [PATCH] Game is now saved every time the model is changed. --- .../java/tu_darmstadt/sudoku/ui/view/SudokuKeyboardLayout.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/tu_darmstadt/sudoku/ui/view/SudokuKeyboardLayout.java b/app/src/main/java/tu_darmstadt/sudoku/ui/view/SudokuKeyboardLayout.java index 384a9ff..6703c44 100644 --- a/app/src/main/java/tu_darmstadt/sudoku/ui/view/SudokuKeyboardLayout.java +++ b/app/src/main/java/tu_darmstadt/sudoku/ui/view/SudokuKeyboardLayout.java @@ -34,6 +34,7 @@ public class SudokuKeyboardLayout extends GridLayout { } else { gameController.setSelectedValue(btn.getValue()); } + gameController.saveGame(getContext()); } } };