Skip to content

Commit b8b33a6

Browse files
stujones11nerzhul
authored andcommittedDec 22, 2018
Android: Fix start-up crashes on version 4.x (#8003)
* Android: Load shared STL library * Android: Fix exception with window background image
1 parent 309e158 commit b8b33a6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
 

‎build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
public class MtNativeActivity extends NativeActivity {
1111

1212
static {
13+
System.loadLibrary("c++_shared");
1314
System.loadLibrary("openal");
1415
System.loadLibrary("ogg");
1516
System.loadLibrary("vorbis");

‎build/android/src/main/res/values-v21/styles.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<style name="AppTheme" parent="@android:style/android:Theme.Material.Light.NoActionBar.Fullscreen">
55
<item name="android:windowNoTitle">true</item>
66
<item name="android:windowAnimationStyle">@null</item>
7-
<item name="android:background">@drawable/bg</item>
7+
<item name="android:windowBackground">@drawable/bg</item>
88
</style>
99

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

12-
</resources>
12+
</resources>

‎build/android/src/main/res/values/styles.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<style name="AppTheme" parent="@android:style/android:Theme.Holo.Light.NoActionBar.Fullscreen">
55
<item name="android:windowNoTitle">true</item>
66
<item name="android:windowAnimationStyle">@null</item>
7-
<item name="android:background">@drawable/bg</item>
7+
<item name="android:windowBackground">@drawable/bg</item>
88
</style>
99

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

12-
</resources>
12+
</resources>

0 commit comments

Comments
 (0)