summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-12 16:56:24 +0200
committerGitHub <noreply@github.com>2021-08-12 16:56:24 +0200
commit09198bf9e2a718ae834ad512cc65416a58da7a85 (patch)
treec912baba803d471e151304c28aece71cfa953654
parent78c8b7ffec388506bc0df32d7c86e3ef45604f6f (diff)
parent20b3e2cc94357d94af98b73d8b5c81d53a82e43f (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.java1
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);
}