Skip to content

Commit

Permalink
better to terminate the activity
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Apr 6, 2023
1 parent 2a8f859 commit ca10f7c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,9 @@ protected void onCreate(Bundle savedInstanceState) {
if (mIsFinishing != 0 && mIsFinishing < 5) {
Log.v(TAG, "finish activity");
mIsFinishing += 1;
/* Make it clear the activity has to be destroyed, even if finish() seems not to be required here */
finish();
/* We need to terminate the activity because SDL main() ended before.
* It seems that this exits correctly, but launcher also immediately recreates an activity */
System.exit(0);
return;
}

Expand Down

0 comments on commit ca10f7c

Please sign in to comment.