Commit 775a802627015764b1a29e94160d45ef30b15c63

Philipp Wiesemann 2014-10-23T16:41:01

Fixed alert dialog for not loaded libraries on Android being cancelable. If the alert dialog could be canceled the Activity would not be finished here. Also setting the property to "true" would be redundant because that is default.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java
index ff27b03..ec6f84c 100644
--- a/android-project/src/org/libsdl/app/SDLActivity.java
+++ b/android-project/src/org/libsdl/app/SDLActivity.java
@@ -132,7 +132,7 @@ public class SDLActivity extends Activity {
                         SDLActivity.mSingleton.finish();
                     }
                 });
-           dlgAlert.setCancelable(true);
+           dlgAlert.setCancelable(false);
            dlgAlert.create().show();
 
            return;