Omit hint dialog if sudoku is custom

This commit is contained in:
uykek 2020-09-07 15:39:16 +02:00
parent 873227a48e
commit 94025a7fac

View file

@ -92,7 +92,7 @@ public class SudokuSpecialButtonLayout extends LinearLayout implements IHighligh
break;
case Hint:
if(gameController.isValidCellSelected()) {
if(gameController.getUsedHints() == 0) {
if(gameController.getUsedHints() == 0 && !gameController.gameIsCustom()) {
// are you sure you want to use a hint?
HintConfirmationDialog hintDialog = new HintConfirmationDialog();
hintDialog.show(fragmentManager, "HintDialogFragment");