[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:
Léa Saviot
2020-07-09 17:29:37 +02:00
committed by Ecco
parent ef8a4f9e7b
commit 1fde815769

View File

@@ -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);
}
}
}