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 - Android, prevent error message box to crash
Summary: Android, prevent error message box to crash
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: All Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-14 15:21 UTC by Sylvain
Modified: 2017-12-19 19:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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