mirror of https://github.com/encounter/SDL.git
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();"
This commit is contained in:
parent
b7be5bce33
commit
616827ae64
|
@ -166,6 +166,7 @@ public class SDLActivity extends Activity {
|
||||||
|
|
||||||
if (mBrokenLibraries)
|
if (mBrokenLibraries)
|
||||||
{
|
{
|
||||||
|
mSingleton = this;
|
||||||
AlertDialog.Builder dlgAlert = new AlertDialog.Builder(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."
|
dlgAlert.setMessage("An error occurred while trying to start the application. Please try again and/or reinstall."
|
||||||
+ System.getProperty("line.separator")
|
+ System.getProperty("line.separator")
|
||||||
|
|
Loading…
Reference in New Issue