From 8027b8b4091eb1715f6e68508cfd8a6c15ab964c Mon Sep 17 00:00:00 2001 From: uykek Date: Tue, 14 Jul 2020 10:08:42 +0200 Subject: [PATCH] Only add time and hints used in a Sudoku to HighscoreInfoContainer if sudoku isn't custom --- .../privacyfriendlysudoku/controller/SaveLoadStatistics.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/SaveLoadStatistics.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/SaveLoadStatistics.java index 7819531..b519ace 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/SaveLoadStatistics.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/controller/SaveLoadStatistics.java @@ -204,12 +204,12 @@ public class SaveLoadStatistics implements ITimerListener, IHintListener { @Override public void onTick(int time) { - incTime(gc.getDifficulty(), gc.getGameType()); + if (!gc.gameIsCustom()) incTime(gc.getDifficulty(), gc.getGameType()); //gc.getUsedHints(); } @Override public void onHintUsed() { - incHints(gc.getDifficulty(),gc.getGameType()); + if (!gc.gameIsCustom()) incHints(gc.getDifficulty(),gc.getGameType()); } }