From e10746822d3d203afe2c5b520069aaaae2e519d3 Mon Sep 17 00:00:00 2001 From: ErikWaegerle Date: Mon, 25 May 2020 20:04:02 +0200 Subject: [PATCH] Extension of the method goToNavigateItem() with dailySudoku Item. Adds NavigationDrawer functionality. --- .../org/secuso/privacyfriendlysudoku/ui/MainActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java index 70878d3..4a378c4 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java @@ -30,6 +30,7 @@ import org.secuso.privacyfriendlysudoku.controller.NewLevelManager; import org.secuso.privacyfriendlysudoku.controller.helper.GameInfoContainer; import org.secuso.privacyfriendlysudoku.game.GameDifficulty; import org.secuso.privacyfriendlysudoku.game.GameType; +import org.secuso.privacyfriendlysudoku.ui.view.DailySudokuActivity; import org.secuso.privacyfriendlysudoku.ui.view.R; import java.util.LinkedList; @@ -330,6 +331,11 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig overridePendingTransition(0, 0); break; + case R.id.nav_dailySudoku_main: + intent = new Intent(this, DailySudokuActivity.class); + startActivity(intent); + break; + default: } return true;