Omit hint dialog if sudoku is custom
This commit is contained in:
parent
873227a48e
commit
94025a7fac
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ public class SudokuSpecialButtonLayout extends LinearLayout implements IHighligh
|
||||||
break;
|
break;
|
||||||
case Hint:
|
case Hint:
|
||||||
if(gameController.isValidCellSelected()) {
|
if(gameController.isValidCellSelected()) {
|
||||||
if(gameController.getUsedHints() == 0) {
|
if(gameController.getUsedHints() == 0 && !gameController.gameIsCustom()) {
|
||||||
// are you sure you want to use a hint?
|
// are you sure you want to use a hint?
|
||||||
HintConfirmationDialog hintDialog = new HintConfirmationDialog();
|
HintConfirmationDialog hintDialog = new HintConfirmationDialog();
|
||||||
hintDialog.show(fragmentManager, "HintDialogFragment");
|
hintDialog.show(fragmentManager, "HintDialogFragment");
|
||||||
|
|
Loading…
Reference in a new issue