[Commits] SDL: Fixed bug 4001 - Android, prevent error message box to crash

libsdl.org revision control commits-owner at libsdl.org
Tue Dec 19 11:19:13 PST 2017


details:   https://hg.libsdl.org/SDL/rev/6d85907059ff
changeset: 11785:6d85907059ff
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue Dec 19 11:19:10 2017 -0800
description:
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();"

diffstat:

 android-project/app/src/main/java/org/libsdl/app/SDLActivity.java |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 3ec03f35f3b9 -r 6d85907059ff android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
--- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Tue Dec 19 11:17:37 2017 -0800
+++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Tue Dec 19 11:19:10 2017 -0800
@@ -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")


More information about the commits mailing list