Extension of the method goToNavigateItem() with dailySudoku Item. Adds NavigationDrawer functionality.

This commit is contained in:
ErikWaegerle 2020-05-25 20:04:02 +02:00
parent 514750650d
commit e10746822d

View file

@ -30,6 +30,7 @@ import org.secuso.privacyfriendlysudoku.controller.NewLevelManager;
import org.secuso.privacyfriendlysudoku.controller.helper.GameInfoContainer; import org.secuso.privacyfriendlysudoku.controller.helper.GameInfoContainer;
import org.secuso.privacyfriendlysudoku.game.GameDifficulty; import org.secuso.privacyfriendlysudoku.game.GameDifficulty;
import org.secuso.privacyfriendlysudoku.game.GameType; import org.secuso.privacyfriendlysudoku.game.GameType;
import org.secuso.privacyfriendlysudoku.ui.view.DailySudokuActivity;
import org.secuso.privacyfriendlysudoku.ui.view.R; import org.secuso.privacyfriendlysudoku.ui.view.R;
import java.util.LinkedList; import java.util.LinkedList;
@ -330,6 +331,11 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig
overridePendingTransition(0, 0); overridePendingTransition(0, 0);
break; break;
case R.id.nav_dailySudoku_main:
intent = new Intent(this, DailySudokuActivity.class);
startActivity(intent);
break;
default: default:
} }
return true; return true;