| Summary: | Android, prevent error message box to crash | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | *don't know* | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | don't know | ||
| Hardware: | All | ||
| OS: | Android (All) | ||
Fixed, thanks! https://hg.libsdl.org/SDL/rev/6d85907059ff |
Prevent the error message box to crash after being clicked. Because of "SDLActivity.mSingleton.finish();" diff -r 35da714ed287 android-project/app/src/main/java/org/libsdl/app/SDLActivity.java --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java Mon Nov 27 15:07:07 2017 -0800 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java Thu Dec 14 16:18:37 2017 +0100 @@ -166,6 +166,7 @@ if (mBrokenLibraries) { + mSingleton = this; AlertDialog.Builder dlgAlert = new AlertDialog.Builder(this); dlgAlert.setMessage("An error occurred while trying to start the application. Please try again and/or reinstall." + System.getProperty("line.separator")