Fix bug that caused the GameActivity to assign the difficulty "unspecified" to all imported sudokus

This commit is contained in:
uykek 2020-07-11 14:33:23 +02:00
parent 0ccb20ad19
commit b98014ad88

View file

@ -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;