From 56db7277caecebab1df4622f11d47108e9c70930 Mon Sep 17 00:00:00 2001 From: uykek Date: Wed, 27 May 2020 20:50:42 +0200 Subject: [PATCH] Exclude daily sudoku from the sudokus displayed in the LoadGameActivity --- .../privacyfriendlysudoku/ui/LoadGameActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/LoadGameActivity.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/LoadGameActivity.java index f04fa0b..5549373 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/LoadGameActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/LoadGameActivity.java @@ -21,7 +21,9 @@ import android.widget.ListView; import android.widget.RatingBar; import android.widget.TextView; +import org.secuso.privacyfriendlysudoku.controller.GameController; import org.secuso.privacyfriendlysudoku.controller.GameStateManager; +import org.secuso.privacyfriendlysudoku.controller.NewLevelManager; import org.secuso.privacyfriendlysudoku.controller.helper.GameInfoContainer; import org.secuso.privacyfriendlysudoku.game.GameDifficulty; import org.secuso.privacyfriendlysudoku.ui.listener.IDeleteDialogFragmentListener; @@ -70,6 +72,13 @@ public class LoadGameActivity extends BaseActivity implements IDeleteDialogFragm GameStateManager gameStateManager = new GameStateManager(this, settings); loadableGameList = gameStateManager.loadGameStateInfo(); + for (GameInfoContainer container : loadableGameList) { + if (container.getID() == GameController.DAILY_SUDOKU_ID) { + loadableGameList.remove(container); + break; + } + } + AdapterView.OnItemClickListener clickListener = new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView parent, View view, int position, long id) {