Fix bug in MainActivity that caused the MainActivity to be re-opened, rather than the GameActivity being opened, upon successfully veriying an imported sudoku
This commit is contained in:
parent
b98014ad88
commit
b12d085f27
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig
|
||||||
boolean solvable = CreateSudokuActivity.verify(MainActivity.this, GameType.Default_9x9, input);
|
boolean solvable = CreateSudokuActivity.verify(MainActivity.this, GameType.Default_9x9, input);
|
||||||
if (solvable) {
|
if (solvable) {
|
||||||
Toast.makeText(MainActivity.this, R.string.finished_verifying_custom_sudoku_toast, Toast.LENGTH_LONG).show();
|
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));
|
intent.setData(Uri.parse(GameActivity.URL_SCHEME_WITHOUT_HOST + "://" + input));
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
finish();
|
finish();
|
||||||
|
|
Loading…
Reference in a new issue