From 16de3835fa17418adb26e84843b40b39ab36ad01 Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Wed, 23 Aug 2017 03:14:51 +0200 Subject: fix UnsatisfiedLinkError when quitting --- platform/android/java/src/org/godotengine/godot/GodotLib.java | 2 +- platform/android/java/src/org/godotengine/godot/GodotView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/android/java') diff --git a/platform/android/java/src/org/godotengine/godot/GodotLib.java b/platform/android/java/src/org/godotengine/godot/GodotLib.java index 1ed04d9d27..98ac29d3ca 100644 --- a/platform/android/java/src/org/godotengine/godot/GodotLib.java +++ b/platform/android/java/src/org/godotengine/godot/GodotLib.java @@ -48,7 +48,7 @@ public class GodotLib { public static native void initialize(Godot p_instance,boolean need_reload_hook,String[] p_cmdline,Object p_asset_manager); public static native void resize(int width, int height,boolean reload); public static native void newcontext(boolean p_32_bits); - public static native void quit(); + public static native void back(); public static native void step(); public static native void touch(int what,int pointer,int howmany, int[] arr); public static native void accelerometer(float x, float y, float z); diff --git a/platform/android/java/src/org/godotengine/godot/GodotView.java b/platform/android/java/src/org/godotengine/godot/GodotView.java index c6c68c36b0..752d9d501c 100644 --- a/platform/android/java/src/org/godotengine/godot/GodotView.java +++ b/platform/android/java/src/org/godotengine/godot/GodotView.java @@ -264,7 +264,7 @@ public class GodotView extends GLSurfaceView implements InputDeviceListener { @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { - GodotLib.quit(); + GodotLib.back(); // press 'back' button should not terminate program //normal handle 'back' event in game logic return true; -- cgit v1.2.3