From b12d085f27adf561392207d6ee9aff7cfb999c8b Mon Sep 17 00:00:00 2001 From: uykek Date: Sat, 11 Jul 2020 14:40:38 +0200 Subject: [PATCH] Fix bug in MainActivity that caused the MainActivity to be re-opened, rather than the GameActivity being opened, upon successfully veriying an imported sudoku --- .../java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e8a25c9..17066e0 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java @@ -385,7 +385,7 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig boolean solvable = CreateSudokuActivity.verify(MainActivity.this, GameType.Default_9x9, input); if (solvable) { Toast.makeText(MainActivity.this, R.string.finished_verifying_custom_sudoku_toast, Toast.LENGTH_LONG).show(); - final Intent intent = new Intent(this, MainActivity.class); + final Intent intent = new Intent(this, GameActivity.class); intent.setData(Uri.parse(GameActivity.URL_SCHEME_WITHOUT_HOST + "://" + input)); startActivity(intent); finish();