Skip to content

Commit

Permalink
Android: Fix start-up crashes on version 4.x (#8003)
Browse files Browse the repository at this point in the history
* Android: Load shared STL library

* Android: Fix exception with window background image
  • Loading branch information
stujones11 authored and nerzhul committed Dec 22, 2018
1 parent 309e158 commit b8b33a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Expand Up @@ -10,6 +10,7 @@
public class MtNativeActivity extends NativeActivity {

static {
System.loadLibrary("c++_shared");
System.loadLibrary("openal");
System.loadLibrary("ogg");
System.loadLibrary("vorbis");
Expand Down
4 changes: 2 additions & 2 deletions build/android/src/main/res/values-v21/styles.xml
Expand Up @@ -4,9 +4,9 @@
<style name="AppTheme" parent="@android:style/android:Theme.Material.Light.NoActionBar.Fullscreen">
<item name="android:windowNoTitle">true</item>
<item name="android:windowAnimationStyle">@null</item>
<item name="android:background">@drawable/bg</item>
<item name="android:windowBackground">@drawable/bg</item>
</style>

<style name="Theme.Dialog" parent="@android:style/Theme.Material.Light.Dialog.NoActionBar"/>

</resources>
</resources>
4 changes: 2 additions & 2 deletions build/android/src/main/res/values/styles.xml
Expand Up @@ -4,9 +4,9 @@
<style name="AppTheme" parent="@android:style/android:Theme.Holo.Light.NoActionBar.Fullscreen">
<item name="android:windowNoTitle">true</item>
<item name="android:windowAnimationStyle">@null</item>
<item name="android:background">@drawable/bg</item>
<item name="android:windowBackground">@drawable/bg</item>
</style>

<style name="Theme.Dialog" parent="@android:style/android:Theme.Holo.Light.Dialog.NoActionBar"/>

</resources>
</resources>

0 comments on commit b8b33a6

Please sign in to comment.