From b98014ad883232ad3fe9e6aee57f90ee12414833 Mon Sep 17 00:00:00 2001 From: uykek Date: Sat, 11 Jul 2020 14:33:23 +0200 Subject: [PATCH] Fix bug that caused the GameActivity to assign the difficulty "unspecified" to all imported sudokus --- .../java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java index 79237e0..4c2ebff 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java @@ -149,8 +149,9 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig difficultyCheck.setPuzzle(container.getFixedValues()); difficultyCheck.solve(); - startGame = difficultyCheck.hasUniqueSolution(); container.parseDifficulty(difficultyCheck.getDifficulty().toString()); + startGame = difficultyCheck.hasUniqueSolution(); + } catch (IllegalArgumentException e) { startGame = false;