瀏覽代碼

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();"
Sam Lantinga 8 年之前
父節點
當前提交
616827ae64
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

+ 1 - 0
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

@@ -166,6 +166,7 @@ public class SDLActivity extends Activity {
 
         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")