Shut down Godot processes on app exit.
This commit is contained in:
parent
093798c976
commit
f35b1f3b91
2 changed files with 5 additions and 1 deletions
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue