diff options
author | Marcus Brummer <mbrlabs7@gmail.com> | 2021-08-12 15:33:51 +0200 |
---|---|---|
committer | Marcus Brummer <mbrlabs7@gmail.com> | 2021-08-12 15:33:51 +0200 |
commit | 20b3e2cc94357d94af98b73d8b5c81d53a82e43f (patch) | |
tree | e208f45d03cbbf6e71f93e3bd25ee77aef6dba97 /platform/android/java/lib/src | |
parent | 975a63e6f78d98d67cf2753a9cb7b78f2999156d (diff) |
Properly finishes Godot's Android activity when destroyed by the system
Diffstat (limited to 'platform/android/java/lib/src')
-rw-r--r-- | platform/android/java/lib/src/org/godotengine/godot/Godot.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.java b/platform/android/java/lib/src/org/godotengine/godot/Godot.java index 8ffa4a9249..01eb1f1ec8 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.java @@ -842,6 +842,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC } private void forceQuit() { + getActivity().finish(); System.exit(0); } |