Fixed bug 4001 - Android, prevent error message box to crash
authorSam Lantinga <slouken@libsdl.org>
Tue, 19 Dec 2017 11:19:10 -0800
changeset 117856d85907059ff
parent 11784 3ec03f35f3b9
child 11786 677c76668fe1
Fixed bug 4001 - Android, prevent error message box to crash

Sylvain

Prevent the error message box to crash after being clicked.
Because of "SDLActivity.mSingleton.finish();"
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Tue Dec 19 11:17:37 2017 -0800
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Tue Dec 19 11:19:10 2017 -0800
     1.3 @@ -166,6 +166,7 @@
     1.4  
     1.5          if (mBrokenLibraries)
     1.6          {
     1.7 +            mSingleton = this;
     1.8              AlertDialog.Builder dlgAlert  = new AlertDialog.Builder(this);
     1.9              dlgAlert.setMessage("An error occurred while trying to start the application. Please try again and/or reinstall."
    1.10                    + System.getProperty("line.separator")