Shut down Godot processes on app exit.

This commit is contained in:
fhuya 2019-08-20 22:35:46 -07:00
parent 093798c976
commit f35b1f3b91
2 changed files with 5 additions and 1 deletions

View file

@ -4,7 +4,7 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.3.2' classpath 'com.android.tools.build:gradle:3.4.2'
} }
} }

View file

@ -625,6 +625,10 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
GodotLib.ondestroy(this); GodotLib.ondestroy(this);
super.onDestroy(); 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 @Override