From f35b1f3b9159a6c1197c24d8195000468d1c1c61 Mon Sep 17 00:00:00 2001 From: fhuya Date: Tue, 20 Aug 2019 22:35:46 -0700 Subject: [PATCH] Shut down Godot processes on app exit. --- misc/ide/jetbrains/build.gradle | 2 +- platform/android/java/src/org/godotengine/godot/Godot.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/ide/jetbrains/build.gradle b/misc/ide/jetbrains/build.gradle index eb2fbc0e69b..dea81b4ea31 100644 --- a/misc/ide/jetbrains/build.gradle +++ b/misc/ide/jetbrains/build.gradle @@ -4,7 +4,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.3.2' + classpath 'com.android.tools.build:gradle:3.4.2' } } diff --git a/platform/android/java/src/org/godotengine/godot/Godot.java b/platform/android/java/src/org/godotengine/godot/Godot.java index 6e1841fa8be..bfc65a3b788 100644 --- a/platform/android/java/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/src/org/godotengine/godot/Godot.java @@ -625,6 +625,10 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC GodotLib.ondestroy(this); super.onDestroy(); + + // TODO: This is a temp solution. The proper fix will involve tracking down and properly shutting down each + // native Godot components that is started in Godot#onVideoInit. + forceQuit(); } @Override