Fix bug that caused the GameActivity to assign the difficulty "unspecified" to all imported sudokus
This commit is contained in:
parent
0ccb20ad19
commit
b98014ad88
1 changed files with 2 additions and 1 deletions
|
@ -149,8 +149,9 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig
|
||||||
difficultyCheck.setPuzzle(container.getFixedValues());
|
difficultyCheck.setPuzzle(container.getFixedValues());
|
||||||
difficultyCheck.solve();
|
difficultyCheck.solve();
|
||||||
|
|
||||||
startGame = difficultyCheck.hasUniqueSolution();
|
|
||||||
container.parseDifficulty(difficultyCheck.getDifficulty().toString());
|
container.parseDifficulty(difficultyCheck.getDifficulty().toString());
|
||||||
|
startGame = difficultyCheck.hasUniqueSolution();
|
||||||
|
|
||||||
|
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
startGame = false;
|
startGame = false;
|
||||||
|
|
Loading…
Reference in a new issue