privacy-friendly-sudoku-fork/app
rdatta95 8f92a067f3 Getting correct value of "gameSolved" key (Found when working on Issue #37)
Observation:
  savedInstanceState.getInt("gameSolved") ALWAYS returned 0 (default).
  The key "gameSolved" is set with putBoolean, which is correct. A ClassCastException was thrown in getInt and the catch block returned the default 0-value.

Issues before change:
  Multiple statements that are supposed to be executed based on gameSolved (like disabling the special keys and the sudoku grid), were skipped.
  Because of that, after finishing a game, if someone changed the screen orientation, the keys and the grid became active again and the grid could be modified.

Changes done:
  1. Changed it to getBoolean("gameSolved")
  2. Removed the " == 1" part because that is redundant for a boolean.
2020-11-04 21:32:04 +05:30
..
src Getting correct value of "gameSolved" key (Found when working on Issue #37) 2020-11-04 21:32:04 +05:30
.gitignore First Commit. Adding some Source code. 2015-11-09 12:41:46 +01:00
build.gradle Upgrade Gradle to v6.5 2020-10-29 11:01:36 +01:00
proguard-rules.pro First Commit. Adding some Source code. 2015-11-09 12:41:46 +01:00