mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[ion/android] Do not setWindowStyle if SDL not initialized
When a library was broken, we would see an error due to the failed setWindowStyle call, instead of getting the briken library error.
This commit is contained in:
@@ -74,7 +74,11 @@ public class EpsilonActivity extends SDLActivity {
|
||||
* setWindowStyle(false) was already called in SDLActivity::onCreate. Find
|
||||
* out why and make a proper fix? */
|
||||
super.onCreate(savedInstanceState);
|
||||
setWindowStyle(true);
|
||||
if (!mBrokenLibraries) {
|
||||
/* If mBrokenLibraries, SDL is not initialized by onCreate in
|
||||
* SDLActivity.java. */
|
||||
setWindowStyle(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user