From 94025a7fac6c622f99e9010231f43b47ef7a3a70 Mon Sep 17 00:00:00 2001 From: uykek Date: Mon, 7 Sep 2020 15:39:16 +0200 Subject: [PATCH] Omit hint dialog if sudoku is custom --- .../ui/view/SudokuSpecialButtonLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/SudokuSpecialButtonLayout.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/SudokuSpecialButtonLayout.java index 090e361..99d40b2 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/SudokuSpecialButtonLayout.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/SudokuSpecialButtonLayout.java @@ -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");