Merge pull request #31521 from m4gr3d/force_quit_on_destroy

Shut down Godot processes on app exit.
This commit is contained in:
Rémi Verschelde 2019-08-21 09:07:27 +02:00 committed by GitHub
commit a1e6eeef3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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'
}
}

View file

@ -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