Change launchmode of GameActivityto 'singleTask' and add onNewIntent method to GameActivity
This commit is contained in:
parent
a8629fc75c
commit
87a80de4b5
2 changed files with 9 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
|||
<activity
|
||||
android:name="org.secuso.privacyfriendlysudoku.ui.GameActivity"
|
||||
android:label="@string/title_activity_game_view"
|
||||
android:launchMode="singleTask"
|
||||
android:theme="@style/AppTheme.NoActionBar">
|
||||
|
||||
<intent-filter >
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue