diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-12 16:56:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 16:56:24 +0200 |
commit | 09198bf9e2a718ae834ad512cc65416a58da7a85 (patch) | |
tree | c912baba803d471e151304c28aece71cfa953654 | |
parent | 78c8b7ffec388506bc0df32d7c86e3ef45604f6f (diff) | |
parent | 20b3e2cc94357d94af98b73d8b5c81d53a82e43f (diff) |
Merge pull request #51571 from mbrlabs/end-him-rightly
Properly finish Godot's Android activity when destroyed by the system
-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); } |