We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4001

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)   

Description Sylvain 2017-12-14 15:21:08 UTC
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")
Comment 1 Sam Lantinga 2017-12-19 19:19:26 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/6d85907059ff