Jelajahi Sumber

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.
Philipp Wiesemann 11 tahun lalu
induk
melakukan
775a802627
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      android-project/src/org/libsdl/app/SDLActivity.java

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

@@ -132,7 +132,7 @@ public class SDLActivity extends Activity {
                         SDLActivity.mSingleton.finish();
                         SDLActivity.mSingleton.finish();
                     }
                     }
                 });
                 });
-           dlgAlert.setCancelable(true);
+           dlgAlert.setCancelable(false);
            dlgAlert.create().show();
            dlgAlert.create().show();
 
 
            return;
            return;