From 87a80de4b569902ba9632a1bcb20572ab3b42aff Mon Sep 17 00:00:00 2001 From: uykek Date: Mon, 15 Jun 2020 09:05:56 +0200 Subject: [PATCH] Change launchmode of GameActivityto 'singleTask' and add onNewIntent method to GameActivity --- app/src/main/AndroidManifest.xml | 1 + .../org/secuso/privacyfriendlysudoku/ui/GameActivity.java | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a1cc005..6e128ce 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -42,6 +42,7 @@ diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java index 3ea9f1b..4e5982c 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/GameActivity.java @@ -298,6 +298,14 @@ public class GameActivity extends BaseActivity implements NavigationView.OnNavig } gameController.deleteTimer(); } + + @Override + public void onNewIntent(Intent intent) { + super.onNewIntent(intent); + startActivity(intent); + finish(); + } + @Override public void onResume(){ super.onResume();