ソースを参照

Merge pull request #31521 from m4gr3d/force_quit_on_destroy

Shut down Godot processes on app exit.
Rémi Verschelde 6 年 前
コミット
a1e6eeef3e

+ 1 - 1
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'
     }
 }
 

+ 4 - 0
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