From 3d15a6774d6cc4a9e10cf96602b864562fbc9e4d Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sat, 22 Dec 2018 18:02:00 +0000 Subject: [PATCH] Android: Fix start-up crashes on version 4.x (#8003) * Android: Load shared STL library * Android: Fix exception with window background image --- .../src/main/java/net.minetest.minetest/MtNativeActivity.java | 1 + build/android/src/main/res/values-v21/styles.xml | 4 ++-- build/android/src/main/res/values/styles.xml | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java b/build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java index 234a503da..8669b4493 100644 --- a/build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java +++ b/build/android/src/main/java/net.minetest.minetest/MtNativeActivity.java @@ -10,6 +10,7 @@ import android.view.WindowManager; public class MtNativeActivity extends NativeActivity { static { + System.loadLibrary("c++_shared"); System.loadLibrary("openal"); System.loadLibrary("ogg"); System.loadLibrary("vorbis"); diff --git a/build/android/src/main/res/values-v21/styles.xml b/build/android/src/main/res/values-v21/styles.xml index efd09d274..825ab1d37 100644 --- a/build/android/src/main/res/values-v21/styles.xml +++ b/build/android/src/main/res/values-v21/styles.xml @@ -4,9 +4,9 @@